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