mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -458,10 +458,10 @@ impl WebGLExtensions {
|
|||
}
|
||||
|
||||
pub fn effective_type(&self, type_: u32) -> u32 {
|
||||
if type_ == OESTextureHalfFloatConstants::HALF_FLOAT_OES {
|
||||
if !self.supports_gl_extension("GL_OES_texture_half_float") {
|
||||
return gl::HALF_FLOAT;
|
||||
}
|
||||
if type_ == OESTextureHalfFloatConstants::HALF_FLOAT_OES &&
|
||||
!self.supports_gl_extension("GL_OES_texture_half_float")
|
||||
{
|
||||
return gl::HALF_FLOAT;
|
||||
}
|
||||
type_
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue