aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorRustAndMetal <111676747+RustAndMetal@users.noreply.github.com>2024-03-18 09:33:43 +0100
committerGitHub <noreply@github.com>2024-03-18 08:33:43 +0000
commitf6a975fc58557b6267ead065a6025ba83ae27474 (patch)
treea148c1703a652d13cabb61fbb883c4045fcef853 /components/script/timers.rs
parent1ab8fa2895bd2339981e0be52591f38ad834ed21 (diff)
downloadservo-f6a975fc58557b6267ead065a6025ba83ae27474.tar.gz
servo-f6a975fc58557b6267ead065a6025ba83ae27474.zip
clippy: Fix several warnings (#31710)
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index b18d60668e0..f4da416566e 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -528,9 +528,9 @@ impl JsTimers {
let oneshot_handle = global.schedule_callback(callback, duration);
// step 3
- let entry = active_timers.entry(handle).or_insert(JsTimerEntry {
- oneshot_handle: oneshot_handle,
- });
+ let entry = active_timers
+ .entry(handle)
+ .or_insert(JsTimerEntry { oneshot_handle });
entry.oneshot_handle = oneshot_handle;
}
}