diff options
Diffstat (limited to 'style/src/progress_bar.rs')
-rw-r--r-- | style/src/progress_bar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<dyn StyleSheet> { } } -impl<T> From<T> for Box<dyn StyleSheet> +impl<'a, T> From<T> for Box<dyn StyleSheet + 'a> where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) |