diff options
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r-- | components/script/dom/webglframebuffer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs index 79d83f07a89..f2b6c24dfac 100644 --- a/components/script/dom/webglframebuffer.rs +++ b/components/script/dom/webglframebuffer.rs @@ -430,7 +430,7 @@ impl WebGLFramebuffer { self.size.set(fb_size); if has_c || has_z || has_zs || has_s { - if self.size.get().map_or(false, |(w, h)| w != 0 && h != 0) { + if self.size.get().is_some_and(|(w, h)| w != 0 && h != 0) { self.status.set(constants::FRAMEBUFFER_COMPLETE); } else { self.status |