From 6504dca05995b376479c3d0bd9e47f5f6b601788 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:06:05 +0700 Subject: Introduce state lifetime for `style_sheet` in `PickList` --- native/src/widget/pick_list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native') diff --git a/native/src/widget/pick_list.rs b/native/src/widget/pick_list.rs index 3a393e14..9d2f63db 100644 --- a/native/src/widget/pick_list.rs +++ b/native/src/widget/pick_list.rs @@ -36,7 +36,7 @@ where padding: Padding, text_size: Option, font: Renderer::Font, - style_sheet: Box, + style_sheet: Box, } /// The local state of a [`PickList`]. @@ -138,7 +138,7 @@ where /// Sets the style of the [`PickList`]. pub fn style( mut self, - style_sheet: impl Into>, + style_sheet: impl Into>, ) -> Self { self.style_sheet = style_sheet.into(); self -- cgit