From d758006ee91aa0fdb70eaa67abbfad36be02c7be Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:08:19 +0700 Subject: Introduce state lifetime for `style_sheet` in `ProgressBar` --- style/src/progress_bar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style') diff --git a/style/src/progress_bar.rs b/style/src/progress_bar.rs index d0878c84..e829c68f 100644 --- a/style/src/progress_bar.rs +++ b/style/src/progress_bar.rs @@ -32,9 +32,9 @@ impl std::default::Default for Box { } } -impl From for Box +impl<'a, T> From for Box where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) -- cgit