mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Fix some rust-clippy violations
This commit is contained in:
parent
1dfc0481ef
commit
16fa9cabc9
11 changed files with 37 additions and 42 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue