mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix assorted warnings in components/
(#31628)
* clippy: fix assorted warnings in `components/` * fix: new and default * fix: review comments
This commit is contained in:
parent
0fda14263a
commit
03d64d0675
14 changed files with 87 additions and 98 deletions
|
@ -218,7 +218,7 @@ impl EmbedderCoordinates {
|
|||
/// to the framebuffer with OpenGL commands.
|
||||
pub fn get_flipped_viewport(&self) -> DeviceIntRect {
|
||||
let fb_height = self.framebuffer.height;
|
||||
let mut view = self.viewport.clone();
|
||||
let mut view = self.viewport;
|
||||
view.origin.y = fb_height - view.origin.y - view.size.height;
|
||||
DeviceIntRect::from_untyped(&view.to_untyped())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue