mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -851,13 +851,10 @@ impl WebGLFramebuffer {
|
|||
attachment: &DomRefCell<Option<WebGLFramebufferAttachment>>,
|
||||
target: &WebGLTextureId,
|
||||
) -> bool {
|
||||
match *attachment.borrow() {
|
||||
Some(WebGLFramebufferAttachment::Texture {
|
||||
texture: ref att_texture,
|
||||
..
|
||||
}) if att_texture.id() == *target => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(*attachment.borrow(), Some(WebGLFramebufferAttachment::Texture {
|
||||
texture: ref att_texture,
|
||||
..
|
||||
}) if att_texture.id() == *target)
|
||||
}
|
||||
|
||||
for (attachment, name) in &attachments {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue