mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fixed some clippy warnings in components (#32107)
* Fixed some clippy warnings in components * Updated handling of NaN values in comparison * Updated formatting using ./mach fmt
This commit is contained in:
parent
f70413baba
commit
007a72fe4d
9 changed files with 20 additions and 29 deletions
|
@ -2953,7 +2953,8 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
}
|
||||
|
||||
if pbo_offset < 0 || pbo_offset as usize > pixel_unpack_buffer.capacity() {
|
||||
return Ok(self.base.webgl_error(InvalidValue));
|
||||
self.base.webgl_error(InvalidValue);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let unpacking_alignment = self.base.texture_unpacking_alignment();
|
||||
|
@ -4119,7 +4120,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
handle_potential_webgl_error!(
|
||||
self.base,
|
||||
program.get_uniform_block_index(block_name),
|
||||
return constants::INVALID_INDEX
|
||||
constants::INVALID_INDEX
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue