aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlaudioelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlaudioelement.rs')
-rw-r--r--src/components/script/dom/htmlaudioelement.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/htmlaudioelement.rs b/src/components/script/dom/htmlaudioelement.rs
index 9cc697454d1..b95a39822a7 100644
--- a/src/components/script/dom/htmlaudioelement.rs
+++ b/src/components/script/dom/htmlaudioelement.rs
@@ -19,10 +19,7 @@ pub struct HTMLAudioElement {
impl HTMLAudioElementDerived for EventTarget {
fn is_htmlaudioelement(&self) -> bool {
- match self.type_id {
- NodeTargetTypeId(ElementNodeTypeId(HTMLAudioElementTypeId)) => true,
- _ => false
- }
+ self.type_id == NodeTargetTypeId(ElementNodeTypeId(HTMLAudioElementTypeId))
}
}