diff options
Diffstat (limited to 'components/script/dom/htmlstyleelement.rs')
-rw-r--r-- | components/script/dom/htmlstyleelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs index 002e4e8a9c2..f33b354b685 100644 --- a/components/script/dom/htmlstyleelement.rs +++ b/components/script/dom/htmlstyleelement.rs @@ -283,7 +283,7 @@ impl HTMLStyleElementMethods for HTMLStyleElement { /// <https://html.spec.whatwg.org/multipage/#dom-style-disabled> fn Disabled(&self) -> bool { self.get_cssom_stylesheet() - .map_or(false, |sheet| sheet.disabled()) + .is_some_and(|sheet| sheet.disabled()) } /// <https://html.spec.whatwg.org/multipage/#dom-style-disabled> |