diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2024-09-16 12:03:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 10:03:52 +0000 |
commit | 7df30f3788a14baa590c9123f5e1616ccfe0a0f0 (patch) | |
tree | 491bdb4447ec1a24c66d1ad91f7c1678ee71b9e1 /components/script/dom/webglframebuffer.rs | |
parent | 236cae9ce53019036710032a980966542a64fbce (diff) | |
download | servo-7df30f3788a14baa590c9123f5e1616ccfe0a0f0.tar.gz servo-7df30f3788a14baa590c9123f5e1616ccfe0a0f0.zip |
Replace .map_or(false with Option::is_some_and (#33468)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
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 |