mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix unneeded return statement warnings (#31776)
This commit is contained in:
parent
d63615354c
commit
15bf32a4e6
19 changed files with 31 additions and 38 deletions
|
@ -312,7 +312,7 @@ impl WebGLTexture {
|
|||
},
|
||||
constants::TEXTURE_MAG_FILTER => match int_value as u32 {
|
||||
constants::NEAREST | constants::LINEAR => update_filter(&self.mag_filter),
|
||||
_ => return Err(WebGLError::InvalidEnum),
|
||||
_ => Err(WebGLError::InvalidEnum),
|
||||
},
|
||||
constants::TEXTURE_WRAP_S | constants::TEXTURE_WRAP_T => match int_value as u32 {
|
||||
constants::CLAMP_TO_EDGE | constants::MIRRORED_REPEAT | constants::REPEAT => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue