mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix op_ref warnings (#31900)
This commit is contained in:
parent
773e881971
commit
da518823ff
8 changed files with 15 additions and 19 deletions
|
@ -597,11 +597,7 @@ impl HTMLFormElementMethods for HTMLFormElement {
|
|||
// Step 7-8
|
||||
let mut names_vec: Vec<DOMString> = Vec::new();
|
||||
for elem in sourced_names_vec.iter() {
|
||||
if names_vec
|
||||
.iter()
|
||||
.find(|name| &**name == &*elem.name)
|
||||
.is_none()
|
||||
{
|
||||
if names_vec.iter().find(|name| **name == *elem.name).is_none() {
|
||||
names_vec.push(DOMString::from(&*elem.name));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue