aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020
diff options
context:
space:
mode:
authorNoble Chinonso <92822667+Noble14477@users.noreply.github.com>2024-10-21 06:54:22 +0100
committerGitHub <noreply@github.com>2024-10-21 05:54:22 +0000
commitc550a70f5c4feda7a1fef22a73038a3e887a5c7f (patch)
treef3c75a126682feaa16125c2dd625e8bb5879e0bd /components/layout_2020
parent4d11b2dc84d53b90ca5f2b729ffa1a5db2da45e9 (diff)
downloadservo-c550a70f5c4feda7a1fef22a73038a3e887a5c7f.tar.gz
servo-c550a70f5c4feda7a1fef22a73038a3e887a5c7f.zip
clippy: fix using clone() warning in components\layout_2020\display_list\mod.rs:1365:25 (#33935)
Signed-off-by: Noble <nobleuwuja@gmail.com>
Diffstat (limited to 'components/layout_2020')
-rw-r--r--components/layout_2020/display_list/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout_2020/display_list/mod.rs b/components/layout_2020/display_list/mod.rs
index 1aed24e70eb..11131d85e2b 100644
--- a/components/layout_2020/display_list/mod.rs
+++ b/components/layout_2020/display_list/mod.rs
@@ -1362,22 +1362,22 @@ pub(super) fn compute_margin_box_radius(
top_left: compute_margin_radius(
radius.top_left,
layout_rect,
- Size2D::new(margin.left.clone(), margin.top.clone()),
+ Size2D::new(margin.left, margin.top),
),
top_right: compute_margin_radius(
radius.top_right,
layout_rect,
- Size2D::new(margin.right.clone(), margin.top.clone()),
+ Size2D::new(margin.right, margin.top),
),
bottom_left: compute_margin_radius(
radius.bottom_left,
layout_rect,
- Size2D::new(margin.left.clone(), margin.bottom.clone()),
+ Size2D::new(margin.left, margin.bottom),
),
bottom_right: compute_margin_radius(
radius.bottom_right,
layout_rect,
- Size2D::new(margin.right.clone(), margin.bottom.clone()),
+ Size2D::new(margin.right, margin.bottom),
),
}
}