mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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
|
@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue