summaryrefslogtreecommitdiffstats
path: root/style/src/progress_bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/progress_bar.rs')
-rw-r--r--style/src/progress_bar.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/style/src/progress_bar.rs b/style/src/progress_bar.rs
index d0878c84..a0195c7a 100644
--- a/style/src/progress_bar.rs
+++ b/style/src/progress_bar.rs
@@ -26,15 +26,15 @@ impl StyleSheet for Default {
}
}
-impl std::default::Default for Box<dyn StyleSheet> {
+impl<'a> std::default::Default for Box<dyn StyleSheet + 'a> {
fn default() -> Self {
Box::new(Default)
}
}
-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)