From d9d6dff550a917d2b73c7ebf96cab2c1472e3243 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 29 Mar 2022 18:24:17 +0700 Subject: Loose lifetime bounds in `pure::Widget` implementations --- native/src/widget/scrollable.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'native/src/widget/scrollable.rs') diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 748fd27d..8958f6da 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -33,7 +33,7 @@ pub struct Scrollable<'a, Message, Renderer> { scrollbar_margin: u16, scroller_width: u16, content: Column<'a, Message, Renderer>, - on_scroll: Option Message>>, + on_scroll: Option Message + 'a>>, style_sheet: Box, } @@ -181,7 +181,7 @@ pub fn update( scrollbar_width: u16, scrollbar_margin: u16, scroller_width: u16, - on_scroll: &Option Message>>, + on_scroll: &Option Message + '_>>, update_content: impl FnOnce( Event, Layout<'_>, @@ -597,7 +597,7 @@ fn scrollbar( fn notify_on_scroll( state: &State, - on_scroll: &Option Message>>, + on_scroll: &Option Message + '_>>, bounds: Rectangle, content_bounds: Rectangle, shell: &mut Shell<'_, Message>, -- cgit