Skip to content

Commit

Permalink
Updated Default implementation of JsTimers in components/script/timer…
Browse files Browse the repository at this point in the history
…s.rs
  • Loading branch information
jahielkomu authored and mrobinson committed Mar 27, 2024
1 parent 9fb4876 commit 29d0e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/timers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ enum InternalTimerCallback {
),
}

impl JsTimers {
pub fn default() -> JsTimers {
impl Default for JsTimers {
pub fn default() -> Self {
JsTimers {
next_timer_handle: Cell::new(JsTimerHandle(1)),
active_timers: DomRefCell::new(HashMap::new()),
Expand Down

0 comments on commit 29d0e95

Please sign in to comment.