diff options
author | komuhangi <51232461+jahielkomu@users.noreply.github.com> | 2024-04-29 15:22:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 12:22:30 +0000 |
commit | 5a4c81f841136ecb74d521c14925ee0354f10543 (patch) | |
tree | d8d07052cc0a6328ba45441d79fd2baa4bee44a8 /components/script/dom/htmllabelelement.rs | |
parent | d490fdf83c84871ecf92f6ba9ca4216e41e0a977 (diff) | |
download | servo-5a4c81f841136ecb74d521c14925ee0354f10543.tar.gz servo-5a4c81f841136ecb74d521c14925ee0354f10543.zip |
Fixe some clippy warnings (#32131)
Diffstat (limited to 'components/script/dom/htmllabelelement.rs')
-rw-r--r-- | components/script/dom/htmllabelelement.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/htmllabelelement.rs b/components/script/dom/htmllabelelement.rs index b73a5a9949c..6f22740427e 100644 --- a/components/script/dom/htmllabelelement.rs +++ b/components/script/dom/htmllabelelement.rs @@ -156,11 +156,8 @@ impl VirtualMethods for HTMLLabelElement { 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); } } } |