diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-22 14:48:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:48:03 +0000 |
commit | bae77671f85481503ab563c20ed488cf883436fa (patch) | |
tree | cd718b8b5e9949052ebde65f9f5f2ce7fc60ef07 /components/script/dom/webglrenderingcontext.rs | |
parent | 3e9b8089381492edeb0992c93776d39bf1df2607 (diff) | |
download | servo-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/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index b5acebd9357..e7d7662a1db 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -2664,15 +2664,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext { // NB: TexImage2D depth is always equal to 1 handle_potential_webgl_error!( self, - texture.initialize( - target, - width as u32, - height as u32, - 1, - internal_format, - level as u32, - None - ) + texture.initialize(target, width, height, 1, internal_format, level, None) ); let msg = WebGLCommand::CopyTexImage2D( |