diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-21 00:05:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 23:05:29 +0000 |
commit | 2789e9887666a05695778bd9d822616985b40dbc (patch) | |
tree | 69400ac55fd84db0ec60e69d71d17f9e6d221e99 /components/script/dom/webgl_validations | |
parent | f55d1d288e4ede7da3090e853a0a0f6aab42c113 (diff) | |
download | servo-2789e9887666a05695778bd9d822616985b40dbc.tar.gz servo-2789e9887666a05695778bd9d822616985b40dbc.zip |
clippy: Fix redundant field names warnings (#31793)
Diffstat (limited to 'components/script/dom/webgl_validations')
-rw-r--r-- | components/script/dom/webgl_validations/tex_image_2d.rs | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/components/script/dom/webgl_validations/tex_image_2d.rs b/components/script/dom/webgl_validations/tex_image_2d.rs index 31ad93adbbf..55f0a272201 100644 --- a/components/script/dom/webgl_validations/tex_image_2d.rs +++ b/components/script/dom/webgl_validations/tex_image_2d.rs @@ -214,12 +214,12 @@ impl<'a> WebGLValidator for CommonTexImage2DValidator<'a> { } Ok(CommonTexImage2DValidatorResult { - texture: texture, - target: target, - level: level, - internal_format: internal_format, - width: width, - height: height, + texture, + target, + level, + internal_format, + width, + height, border: self.border as u32, }) } @@ -236,13 +236,13 @@ impl<'a> CommonTexImage2DValidator<'a> { border: i32, ) -> Self { CommonTexImage2DValidator { - context: context, - target: target, - level: level, - internal_format: internal_format, - width: width, - height: height, - border: border, + context, + target, + level, + internal_format, + width, + height, + border, } } } @@ -276,8 +276,8 @@ impl<'a> TexImage2DValidator<'a> { height, border, ), - format: format, - data_type: data_type, + format, + data_type, } } } @@ -367,15 +367,15 @@ impl<'a> WebGLValidator for TexImage2DValidator<'a> { } Ok(TexImage2DValidatorResult { - width: width, - height: height, - level: level, - border: border, - texture: texture, - target: target, - internal_format: internal_format, - format: format, - data_type: data_type, + width, + height, + level, + border, + texture, + target, + internal_format, + format, + data_type, }) } } |