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
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue