mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
clippy: Fix several warnings (#31710)
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
This commit is contained in:
parent
1ab8fa2895
commit
f6a975fc58
23 changed files with 75 additions and 86 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue