diff options
author | Ali <azy5030@gmail.com> | 2024-09-14 03:41:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 08:41:13 +0000 |
commit | ed6b1b5e6a5002bdeab51214576b50b10822b5f8 (patch) | |
tree | 44984436dcd0656813fedbb2ab679a4bdbebe029 /components/script/dom/gpurenderbundleencoder.rs | |
parent | 6a3cdc47ec61e9d5122dd68aba8c75c00c9e5051 (diff) | |
download | servo-ed6b1b5e6a5002bdeab51214576b50b10822b5f8.tar.gz servo-ed6b1b5e6a5002bdeab51214576b50b10822b5f8.zip |
clippy: Fix suggestions in `script`, `libservo`, and `servoshell` (#33453)
* fix clone on copy warning in servoshell
Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
* Remove unecessary borrow in libservo
Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
* Ignore too many arguments warning on create_constellation()
Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
* fix explicit auto-deref warning
Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
* Autofix multiple clippy warnings in components/script
Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
---------
Signed-off-by: Ali Zein Yousuf <azy5030@gmail.com>
Diffstat (limited to 'components/script/dom/gpurenderbundleencoder.rs')
-rw-r--r-- | components/script/dom/gpurenderbundleencoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/gpurenderbundleencoder.rs b/components/script/dom/gpurenderbundleencoder.rs index b32a7ac17a9..bc05a678f17 100644 --- a/components/script/dom/gpurenderbundleencoder.rs +++ b/components/script/dom/gpurenderbundleencoder.rs @@ -90,7 +90,7 @@ impl GPURenderBundleEncoder { .map(|format| { device .validate_texture_format_required_features(format) - .map(|f| Some(f)) + .map(Some) }) .collect::<Fallible<Vec<_>>>()?, ), |