aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlbodyelement.rs')
-rw-r--r--src/components/script/dom/htmlbodyelement.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/htmlbodyelement.rs b/src/components/script/dom/htmlbodyelement.rs
index 3a4b9440ff4..eb8f70be9c2 100644
--- a/src/components/script/dom/htmlbodyelement.rs
+++ b/src/components/script/dom/htmlbodyelement.rs
@@ -20,10 +20,7 @@ pub struct HTMLBodyElement {
impl HTMLBodyElementDerived for EventTarget {
fn is_htmlbodyelement(&self) -> bool {
- match self.type_id {
- NodeTargetTypeId(ElementNodeTypeId(HTMLBodyElementTypeId)) => true,
- _ => false
- }
+ self.type_id == NodeTargetTypeId(ElementNodeTypeId(HTMLBodyElementTypeId))
}
}