mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
clippy: Fix collapsible_if warnings (#31852)
This commit is contained in:
parent
3d10dbae32
commit
a53632c0e5
11 changed files with 85 additions and 95 deletions
|
@ -871,10 +871,10 @@ impl WebGLRenderingContext {
|
|||
}
|
||||
|
||||
// See https://www.khronos.org/registry/webgl/specs/latest/2.0/#4.1.6
|
||||
if self.webgl_version() == WebGLVersion::WebGL1 {
|
||||
if data_type != image_info.data_type().unwrap() {
|
||||
return self.webgl_error(InvalidOperation);
|
||||
}
|
||||
if self.webgl_version() == WebGLVersion::WebGL1 &&
|
||||
data_type != image_info.data_type().unwrap()
|
||||
{
|
||||
return self.webgl_error(InvalidOperation);
|
||||
}
|
||||
|
||||
let settings = self.texture_unpacking_settings.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue