Fix some rust-clippy violations

This commit is contained in:
Corey Farwell 2015-10-30 18:41:22 -04:00
parent 1dfc0481ef
commit 16fa9cabc9
11 changed files with 37 additions and 42 deletions

View file

@ -205,8 +205,8 @@ impl VirtualMethods for HTMLSelectElement {
}
fn parse_plain_attribute(&self, local_name: &Atom, value: DOMString) -> AttrValue {
match local_name {
&atom!("size") => AttrValue::from_u32(value, DEFAULT_SELECT_SIZE),
match *local_name {
atom!("size") => AttrValue::from_u32(value, DEFAULT_SELECT_SIZE),
_ => self.super_type().unwrap().parse_plain_attribute(local_name, value),
}
}