clippy: Fix more clippy warnings in components/scripts/dom (#31914)

* refrence to a reference

* refrence to a reference
This commit is contained in:
Rosemary Ajayi 2024-03-28 12:26:39 +01:00 committed by GitHub
parent 5aae820f6d
commit 3ddb47e902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

@ -131,7 +131,7 @@ impl URLSearchParamsMethods for URLSearchParams {
let list = self.list.borrow();
list.iter()
.find(|&kv| kv.0 == name.0)
.map(|ref kv| USVString(kv.1.clone()))
.map(|kv| USVString(kv.1.clone()))
}
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall