aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/root.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-01-25 10:03:31 +0100
committerGitHub <noreply@github.com>2024-01-25 09:03:31 +0000
commit50f56affe35a5565f99226daeb29843246c32b69 (patch)
tree23a027edebdc2aae64bb37b4ecfd0f48639fa08c /components/layout_2020/flow/root.rs
parent886f6c58d4cd149fe3238d668bd2f9fd5db78071 (diff)
downloadservo-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/flow/root.rs')
-rw-r--r--components/layout_2020/flow/root.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_2020/flow/root.rs b/components/layout_2020/flow/root.rs
index 21a84d656c0..2dfd34fbfe7 100644
--- a/components/layout_2020/flow/root.rs
+++ b/components/layout_2020/flow/root.rs
@@ -43,7 +43,7 @@ impl BoxTree {
where
Node: 'dom + Copy + LayoutNode<'dom> + Send + Sync,
{
- let boxes = construct_for_root_element(&context, root_element);
+ let boxes = construct_for_root_element(context, root_element);
// Zero box for `:root { display: none }`, one for the root element otherwise.
assert!(boxes.len() <= 1);
@@ -291,7 +291,7 @@ impl BoxTree {
let mut root_fragments = independent_layout
.fragments
.into_iter()
- .map(|fragment| ArcRefCell::new(fragment))
+ .map(ArcRefCell::new)
.collect::<Vec<_>>();
// Zero box for `:root { display: none }`, one for the root element otherwise.