diff options
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r-- | components/script/dom/webglframebuffer.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs index 72b96239d35..8a052ae0de6 100644 --- a/components/script/dom/webglframebuffer.rs +++ b/components/script/dom/webglframebuffer.rs @@ -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 { |