aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/elementinternals.rs
diff options
context:
space:
mode:
authorKitsu <mail@kitsu.me>2024-04-22 03:45:39 -0300
committerGitHub <noreply@github.com>2024-04-22 06:45:39 +0000
commit67f239d1bab9e866539ea4ef76a1d40bcbeb7d53 (patch)
tree3fe75ab5c1fb14618c0792a7ce72994b6913bf29 /components/script/dom/elementinternals.rs
parent025a98773223412edd8a0032a44c60ee84d69eee (diff)
downloadservo-67f239d1bab9e866539ea4ef76a1d40bcbeb7d53.tar.gz
servo-67f239d1bab9e866539ea4ef76a1d40bcbeb7d53.zip
clippy: fix several lint warns (#32126)
As seems #31500 still remain opened here's the next partial fix. Fixed list: `unused_mut`, `clippy::needless_borrow`, `clippy::match_ref_pats`, `clippy::borrow_deref_ref`, `clippy::ptr_eq`, `clippy::unnecessary_cast`, `clippy::derivable_impls`, `clippy::collapsible_match`, `clippy::extra_unused_lifetimes`, `clippy::map_clone`, `clippy::manual_filter`. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes are part of #31500. - [x] These changes do not require tests because are only cosmetic.
Diffstat (limited to 'components/script/dom/elementinternals.rs')
-rw-r--r--components/script/dom/elementinternals.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/elementinternals.rs b/components/script/dom/elementinternals.rs
index ed1f4cdd681..716bddd94b0 100644
--- a/components/script/dom/elementinternals.rs
+++ b/components/script/dom/elementinternals.rs
@@ -143,7 +143,7 @@ impl ElementInternals {
}
if let SubmissionValue::FormData(datums) = &*self.submission_value.borrow() {
- entry_list.extend(datums.iter().map(|d| d.clone()));
+ entry_list.extend(datums.iter().cloned());
return;
}
let name = self
@@ -169,7 +169,7 @@ impl ElementInternals {
entry_list.push(FormDatum {
ty: DOMString::from("file"),
name,
- value: FormDatumValue::File(DomRoot::from_ref(&*file)),
+ value: FormDatumValue::File(DomRoot::from_ref(file)),
});
},
}