diff --git a/dom/raf/src/lib.rs b/dom/raf/src/lib.rs index 8dc14bc6d..c2c8e2b7d 100644 --- a/dom/raf/src/lib.rs +++ b/dom/raf/src/lib.rs @@ -87,7 +87,7 @@ impl AnimationFrameScheduler { pub fn run_on_wake(self) { let state = Rc::clone(&self.0); let waker = waker(Arc::new(self)); - state.ticker.borrow_mut().set_waker(waker.clone()); + state.ticker.borrow_mut().set_waker(waker); state.ticker.borrow_mut().tick(); } }