aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlhtmlelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlhtmlelement.rs')
-rw-r--r--src/components/script/dom/htmlhtmlelement.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/htmlhtmlelement.rs b/src/components/script/dom/htmlhtmlelement.rs
index a0820664c8f..0b06135432b 100644
--- a/src/components/script/dom/htmlhtmlelement.rs
+++ b/src/components/script/dom/htmlhtmlelement.rs
@@ -20,10 +20,7 @@ pub struct HTMLHtmlElement {
impl HTMLHtmlElementDerived for EventTarget {
fn is_htmlhtmlelement(&self) -> bool {
- match self.type_id {
- NodeTargetTypeId(ElementNodeTypeId(HTMLHtmlElementTypeId)) => true,
- _ => false
- }
+ self.type_id == NodeTargetTypeId(ElementNodeTypeId(HTMLHtmlElementTypeId))
}
}