summaryrefslogtreecommitdiffstats
path: root/style/src/toggler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/toggler.rs')
-rw-r--r--style/src/toggler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/style/src/toggler.rs b/style/src/toggler.rs
index 5a155123..16c014e6 100644
--- a/style/src/toggler.rs
+++ b/style/src/toggler.rs
@@ -47,9 +47,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)