diff options
author | 2021-10-31 17:06:05 +0700 | |
---|---|---|
committer | 2021-10-31 17:06:05 +0700 | |
commit | 6504dca05995b376479c3d0bd9e47f5f6b601788 (patch) | |
tree | 57e7899c79347ddfc5626cd2c68f6bb6d783ae89 /native/src | |
parent | 89d50c0243fcb70442c78bbff207d0328b33e158 (diff) | |
download | iced-6504dca05995b376479c3d0bd9e47f5f6b601788.tar.gz iced-6504dca05995b376479c3d0bd9e47f5f6b601788.tar.bz2 iced-6504dca05995b376479c3d0bd9e47f5f6b601788.zip |
Introduce state lifetime for `style_sheet` in `PickList`
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/widget/pick_list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<u16>, font: Renderer::Font, - style_sheet: Box<dyn StyleSheet>, + style_sheet: Box<dyn StyleSheet + 'a>, } /// 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<Box<dyn StyleSheet>>, + style_sheet: impl Into<Box<dyn StyleSheet + 'a>>, ) -> Self { self.style_sheet = style_sheet.into(); self |