diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-01-25 10:03:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 09:03:31 +0000 |
commit | 50f56affe35a5565f99226daeb29843246c32b69 (patch) | |
tree | 23a027edebdc2aae64bb37b4ecfd0f48639fa08c /components/layout_2020/fragment_tree/containing_block.rs | |
parent | 886f6c58d4cd149fe3238d668bd2f9fd5db78071 (diff) | |
download | servo-50f56affe35a5565f99226daeb29843246c32b69.tar.gz servo-50f56affe35a5565f99226daeb29843246c32b69.zip |
Lint layout_2020 with clippy (#31169)
cargo clippy --fix -p layout_2020 --allow-dirty --broken-code
Diffstat (limited to 'components/layout_2020/fragment_tree/containing_block.rs')
-rw-r--r-- | components/layout_2020/fragment_tree/containing_block.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout_2020/fragment_tree/containing_block.rs b/components/layout_2020/fragment_tree/containing_block.rs index 5eb14780c78..042c3e34a6a 100644 --- a/components/layout_2020/fragment_tree/containing_block.rs +++ b/components/layout_2020/fragment_tree/containing_block.rs @@ -67,11 +67,11 @@ impl<'a, T> ContainingBlockManager<'a, T> { &self, for_non_absolute_descendants: &'a T, ) -> Self { - return ContainingBlockManager { + ContainingBlockManager { for_non_absolute_descendants, for_absolute_descendants: self.for_absolute_descendants, for_absolute_and_fixed_descendants: self.for_absolute_and_fixed_descendants, - }; + } } pub(crate) fn new_for_absolute_descendants( @@ -79,11 +79,11 @@ impl<'a, T> ContainingBlockManager<'a, T> { for_non_absolute_descendants: &'a T, for_absolute_descendants: &'a T, ) -> Self { - return ContainingBlockManager { + ContainingBlockManager { for_non_absolute_descendants, for_absolute_descendants: Some(for_absolute_descendants), for_absolute_and_fixed_descendants: self.for_absolute_and_fixed_descendants, - }; + } } pub(crate) fn new_for_absolute_and_fixed_descendants( @@ -91,10 +91,10 @@ impl<'a, T> ContainingBlockManager<'a, T> { for_non_absolute_descendants: &'a T, for_absolute_and_fixed_descendants: &'a T, ) -> Self { - return ContainingBlockManager { + ContainingBlockManager { for_non_absolute_descendants, for_absolute_descendants: None, for_absolute_and_fixed_descendants, - }; + } } } |