aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
-rw-r--r--components/script/dom/htmltableelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs
index 29c161b6b50..c02c8d51c65 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -144,9 +144,9 @@ impl HTMLTableElement {
let section =
HTMLTableSectionElement::new(atom.clone(), None, &document_from_node(self), None);
- match atom {
- &local_name!("thead") => self.SetTHead(Some(&section)),
- &local_name!("tfoot") => self.SetTFoot(Some(&section)),
+ match *atom {
+ local_name!("thead") => self.SetTHead(Some(&section)),
+ local_name!("tfoot") => self.SetTFoot(Some(&section)),
_ => unreachable!("unexpected section type"),
}
.expect("unexpected section type");