mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix unnecessary_cast
warnings in components/script
(#31823)
* clippy: Fix unnecessary cast warnings * clippy: Replace redundant field names with their shorthand alternatives * clippy: Delete struct pattern dereferencings
This commit is contained in:
parent
3e9b808938
commit
bae77671f8
21 changed files with 32 additions and 45 deletions
|
@ -607,7 +607,7 @@ impl CanvasState {
|
|||
) -> (Rect<f64>, Rect<f64>) {
|
||||
let image_rect = Rect::new(
|
||||
Point2D::new(0f64, 0f64),
|
||||
Size2D::new(image_size.width as f64, image_size.height as f64),
|
||||
Size2D::new(image_size.width, image_size.height),
|
||||
);
|
||||
|
||||
// The source rectangle is the rectangle whose corners are the four points (sx, sy),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue