mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -116,10 +116,7 @@ impl VertexArrayObject {
|
|||
return Err(WebGLError::InvalidValue);
|
||||
}
|
||||
|
||||
let is_webgl2 = match self.context.webgl_version() {
|
||||
WebGLVersion::WebGL2 => true,
|
||||
_ => false,
|
||||
};
|
||||
let is_webgl2 = matches!(self.context.webgl_version(), WebGLVersion::WebGL2);
|
||||
|
||||
let bytes_per_component: i32 = match type_ {
|
||||
constants::BYTE | constants::UNSIGNED_BYTE => 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue