mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -379,8 +379,8 @@ impl PaintWorkletGlobalScope {
|
|||
) -> DrawAPaintImageResult {
|
||||
debug!("Returning an invalid image.");
|
||||
DrawAPaintImageResult {
|
||||
width: size.width as u32,
|
||||
height: size.height as u32,
|
||||
width: size.width,
|
||||
height: size.height,
|
||||
format: PixelFormat::BGRA8,
|
||||
image_key: None,
|
||||
missing_image_urls,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue