mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fixed some clippy warnings by replacing 'match' with 'if' (#32007)
This commit is contained in:
parent
05f1bbf0a9
commit
e0e3408650
5 changed files with 57 additions and 71 deletions
|
@ -158,11 +158,8 @@ impl VirtualMethods for HTMLOutputElement {
|
|||
|
||||
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
|
||||
self.super_type().unwrap().attribute_mutated(attr, mutation);
|
||||
match attr.local_name() {
|
||||
&local_name!("form") => {
|
||||
self.form_attribute_mutated(mutation);
|
||||
},
|
||||
_ => {},
|
||||
if attr.local_name() == &local_name!("form") {
|
||||
self.form_attribute_mutated(mutation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue