mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: Fix four warnings (#32789)
* Fixes 4 clippy rules Signed-off-by: Danila Matveev <usurname.r@gmail.com> * Rollbacks changes in range.rs and silences clippy::neg_cmp_op_on_partial_ord Signed-off-by: Danila Matveev <usurname.r@gmail.com> * Fixes a fmt issue Signed-off-by: Danila Matveev <usurname.r@gmail.com> --------- Signed-off-by: Danila Matveev <usurname.r@gmail.com>
This commit is contained in:
parent
5fd0d2f17b
commit
a0d2b36ad8
3 changed files with 6 additions and 3 deletions
|
@ -272,7 +272,7 @@ fn calculate_box_size(target: &Element, observed_box: &ResizeObserverBoxOptions)
|
|||
.upcast::<Node>()
|
||||
.content_boxes()
|
||||
.pop()
|
||||
.unwrap_or_else(|| Rect::zero())
|
||||
.unwrap_or_else(Rect::zero)
|
||||
},
|
||||
// TODO(#31182): add support for border box, and device pixel size, calculations.
|
||||
_ => Rect::zero(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue