diff options
author | RustAndMetal <111676747+RustAndMetal@users.noreply.github.com> | 2024-03-18 09:33:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 08:33:43 +0000 |
commit | f6a975fc58557b6267ead065a6025ba83ae27474 (patch) | |
tree | a148c1703a652d13cabb61fbb883c4045fcef853 /components/script/timers.rs | |
parent | 1ab8fa2895bd2339981e0be52591f38ad834ed21 (diff) | |
download | servo-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.rs | 6 |
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; } } |