mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
changed match
to 'matches!' (#31850)
This commit is contained in:
parent
9a76dd9325
commit
bd39e03eeb
29 changed files with 185 additions and 229 deletions
|
@ -66,10 +66,10 @@ fn validate_params(pname: u32, value: WebGLSamplerValue) -> bool {
|
|||
};
|
||||
allowed_values.contains(&value)
|
||||
},
|
||||
WebGLSamplerValue::Float(_) => match pname {
|
||||
constants::TEXTURE_MIN_LOD | constants::TEXTURE_MAX_LOD => true,
|
||||
_ => false,
|
||||
},
|
||||
WebGLSamplerValue::Float(_) => matches!(
|
||||
pname,
|
||||
constants::TEXTURE_MIN_LOD | constants::TEXTURE_MAX_LOD
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue