clippy: Fix unneeded return statement warnings (#31776)

This commit is contained in:
Oluwatobi Sofela 2024-03-20 15:11:40 +01:00 committed by GitHub
parent d63615354c
commit 15bf32a4e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 31 additions and 38 deletions

View file

@ -892,8 +892,7 @@ impl WebGL2RenderingContext {
handle_potential_webgl_error!(
self.base,
texture.storage(target, levels, internal_format, width, height, depth),
return
texture.storage(target, levels, internal_format, width, height, depth)
);
}
}
@ -4197,8 +4196,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
handle_potential_webgl_error!(
self.base,
program.bind_uniform_block(block_index, block_binding),
return
program.bind_uniform_block(block_index, block_binding)
)
}