aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/paintworkletglobalscope.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-22 14:48:03 +0100
committerGitHub <noreply@github.com>2024-03-22 13:48:03 +0000
commitbae77671f85481503ab563c20ed488cf883436fa (patch)
treecd718b8b5e9949052ebde65f9f5f2ce7fc60ef07 /components/script/dom/paintworkletglobalscope.rs
parent3e9b8089381492edeb0992c93776d39bf1df2607 (diff)
downloadservo-bae77671f85481503ab563c20ed488cf883436fa.tar.gz
servo-bae77671f85481503ab563c20ed488cf883436fa.zip
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
Diffstat (limited to 'components/script/dom/paintworkletglobalscope.rs')
-rw-r--r--components/script/dom/paintworkletglobalscope.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/paintworkletglobalscope.rs b/components/script/dom/paintworkletglobalscope.rs
index a6b2c0e2d07..154b3c73d02 100644
--- a/components/script/dom/paintworkletglobalscope.rs
+++ b/components/script/dom/paintworkletglobalscope.rs
@@ -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,