aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablerowelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-10-30 18:41:22 -0400
committerCorey Farwell <coreyf@rwell.org>2015-10-30 18:41:22 -0400
commit16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2 (patch)
tree434fe52411427d9dd609e922ea1d865ef95034af /components/script/dom/htmltablerowelement.rs
parent1dfc0481efd4687658ab34e68c883caeadd8b20f (diff)
downloadservo-16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2.tar.gz
servo-16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2.zip
Fix some rust-clippy violations
Diffstat (limited to 'components/script/dom/htmltablerowelement.rs')
-rw-r--r--components/script/dom/htmltablerowelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs
index 8db70bd9d2a..e7bb8b1fd6d 100644
--- a/components/script/dom/htmltablerowelement.rs
+++ b/components/script/dom/htmltablerowelement.rs
@@ -102,8 +102,8 @@ impl VirtualMethods for HTMLTableRowElement {
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
self.super_type().unwrap().attribute_mutated(attr, mutation);
- match attr.local_name() {
- &atom!(bgcolor) => {
+ match *attr.local_name() {
+ atom!(bgcolor) => {
self.background_color.set(mutation.new_value(attr).and_then(|value| {
str::parse_legacy_color(&value).ok()
}));