aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performance.rs
diff options
context:
space:
mode:
authorAarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com>2024-03-22 11:11:17 +0530
committerGitHub <noreply@github.com>2024-03-22 05:41:17 +0000
commit9b26dca141159ddc75266de9ef5a54f537450921 (patch)
treec6ad0681bfbf5a15f4916ec45827a2a52be19ade /components/script/dom/performance.rs
parent95e69fe4ffce23708608855720961741344bee07 (diff)
downloadservo-9b26dca141159ddc75266de9ef5a54f537450921.tar.gz
servo-9b26dca141159ddc75266de9ef5a54f537450921.zip
Fixed the .clone() warnings. (#31819)
Diffstat (limited to 'components/script/dom/performance.rs')
-rw-r--r--components/script/dom/performance.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs
index cd378ed1bdc..b203a6856f1 100644
--- a/components/script/dom/performance.rs
+++ b/components/script/dom/performance.rs
@@ -80,7 +80,7 @@ impl PerformanceEntryList {
.as_ref()
.map_or(true, |type_| *e.entry_type() == *type_)
})
- .map(|e| e.clone())
+ .cloned()
.collect::<Vec<DomRoot<PerformanceEntry>>>();
res.sort_by(|a, b| {
a.start_time()