diff --git a/src/use_scroll.rs b/src/use_scroll.rs index 87b9346..dc0f2c3 100644 --- a/src/use_scroll.rs +++ b/src/use_scroll.rs @@ -456,10 +456,10 @@ pub struct UseScrollOptions { offset: ScrollOffset, /// Callback when scrolling is happening. - on_scroll: Box + 'static>, + on_scroll: Box>, /// Callback when scrolling stops (after `idle` + `throttle` milliseconds have passed). - on_stop: Box + 'static>, + on_stop: Box>, /// Options passed to the `addEventListener("scroll", ...)` call event_listener_options: web_sys::AddEventListenerOptions,