summaryrefslogtreecommitdiffstats
path: root/style/src/pane_grid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/pane_grid.rs')
-rw-r--r--style/src/pane_grid.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/style/src/pane_grid.rs b/style/src/pane_grid.rs
index e39ee797..a12ac3f5 100644
--- a/style/src/pane_grid.rs
+++ b/style/src/pane_grid.rs
@@ -35,17 +35,17 @@ 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: StyleSheet + 'a,
{
- fn from(style: T) -> Self {
- Box::new(style)
+ fn from(style_sheet: T) -> Self {
+ Box::new(style_sheet)
}
}