diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-20 15:11:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 14:11:40 +0000 |
commit | 15bf32a4e615c0d663bc04a1b7b7adc038c993c5 (patch) | |
tree | 395b6a9088031535e3aca7f56c6ded6e941fb0fa /components/script/dom/webgltexture.rs | |
parent | d63615354cc02ceea08aaf3727530d4afa5b1876 (diff) | |
download | servo-15bf32a4e615c0d663bc04a1b7b7adc038c993c5.tar.gz servo-15bf32a4e615c0d663bc04a1b7b7adc038c993c5.zip |
clippy: Fix unneeded return statement warnings (#31776)
Diffstat (limited to 'components/script/dom/webgltexture.rs')
-rw-r--r-- | components/script/dom/webgltexture.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webgltexture.rs b/components/script/dom/webgltexture.rs index cd5539ab55e..0a89f519b0f 100644 --- a/components/script/dom/webgltexture.rs +++ b/components/script/dom/webgltexture.rs @@ -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 => { |