mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix warning in components/compositing (#33625)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
163e477668
commit
cd803c8341
1 changed files with 2 additions and 5 deletions
|
@ -1914,11 +1914,8 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
|
|||
return;
|
||||
}
|
||||
|
||||
self.page_zoom = Scale::new(
|
||||
(self.page_zoom.get() * magnification)
|
||||
.max(MIN_ZOOM)
|
||||
.min(MAX_ZOOM),
|
||||
);
|
||||
self.page_zoom =
|
||||
Scale::new((self.page_zoom.get() * magnification).clamp(MIN_ZOOM, MAX_ZOOM));
|
||||
self.update_after_zoom_or_hidpi_change();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue