mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix some warnings in components/script
(#31849)
* clippy: fixed some warnings in components/script * fixed formatting * fix formatting
This commit is contained in:
parent
dbe3cb8a3c
commit
d8adeb1b44
7 changed files with 24 additions and 27 deletions
|
@ -114,7 +114,7 @@ impl NamedNodeMapMethods for NamedNodeMap {
|
|||
continue;
|
||||
}
|
||||
|
||||
if !names.iter().any(|name| &*name == s) {
|
||||
if !names.iter().any(|name| name == s) {
|
||||
names.push(DOMString::from(s));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue