From f222a714b834481a9575be3908d83b6c8dedaac6 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Thu, 13 Jul 2023 11:18:25 +0100 Subject: [PATCH] fixed Box option fields (mostly in default-struct-builder) --- src/use_scroll.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,