mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
4d11b2dc84
commit
c550a70f5c
1 changed files with 4 additions and 4 deletions
|
@ -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),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue