aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmllegendelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmllegendelement.rs')
-rw-r--r--src/components/script/dom/htmllegendelement.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/htmllegendelement.rs b/src/components/script/dom/htmllegendelement.rs
index 833a3b59b2b..b5552d5b277 100644
--- a/src/components/script/dom/htmllegendelement.rs
+++ b/src/components/script/dom/htmllegendelement.rs
@@ -20,10 +20,7 @@ pub struct HTMLLegendElement {
impl HTMLLegendElementDerived for EventTarget {
fn is_htmllegendelement(&self) -> bool {
- match self.type_id {
- NodeTargetTypeId(ElementNodeTypeId(HTMLLegendElementTypeId)) => true,
- _ => false
- }
+ self.type_id == NodeTargetTypeId(ElementNodeTypeId(HTMLLegendElementTypeId))
}
}