clippy: fix using clone() warning in components\layout_2020\display_list\mod.rs:1365:25 (#33935)

Signed-off-by: Noble <nobleuwuja@gmail.com>
This commit is contained in:
Noble Chinonso 2024-10-21 06:54:22 +01:00 committed by GitHub
parent 4d11b2dc84
commit c550a70f5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1362,22 +1362,22 @@ pub(super) fn compute_margin_box_radius(
top_left: compute_margin_radius( top_left: compute_margin_radius(
radius.top_left, radius.top_left,
layout_rect, layout_rect,
Size2D::new(margin.left.clone(), margin.top.clone()), Size2D::new(margin.left, margin.top),
), ),
top_right: compute_margin_radius( top_right: compute_margin_radius(
radius.top_right, radius.top_right,
layout_rect, layout_rect,
Size2D::new(margin.right.clone(), margin.top.clone()), Size2D::new(margin.right, margin.top),
), ),
bottom_left: compute_margin_radius( bottom_left: compute_margin_radius(
radius.bottom_left, radius.bottom_left,
layout_rect, layout_rect,
Size2D::new(margin.left.clone(), margin.bottom.clone()), Size2D::new(margin.left, margin.bottom),
), ),
bottom_right: compute_margin_radius( bottom_right: compute_margin_radius(
radius.bottom_right, radius.bottom_right,
layout_rect, layout_rect,
Size2D::new(margin.right.clone(), margin.bottom.clone()), Size2D::new(margin.right, margin.bottom),
), ),
} }
} }