From c550a70f5c4feda7a1fef22a73038a3e887a5c7f Mon Sep 17 00:00:00 2001 From: Noble Chinonso <92822667+Noble14477@users.noreply.github.com> Date: Mon, 21 Oct 2024 06:54:22 +0100 Subject: [PATCH] clippy: fix using clone() warning in components\layout_2020\display_list\mod.rs:1365:25 (#33935) Signed-off-by: Noble --- components/layout_2020/display_list/mod.rs | 8 ++++---- 1 file 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), ), } }