diff options
Diffstat (limited to 'style/src/container.rs')
-rw-r--r-- | style/src/container.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/style/src/container.rs b/style/src/container.rs index 1ce6a7ca..a5dc700e 100644 --- a/style/src/container.rs +++ b/style/src/container.rs @@ -49,11 +49,11 @@ 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: StyleSheet + 'a, { - fn from(style: T) -> Self { - Box::new(style) + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } |