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.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/style/src/pane_grid.rs b/style/src/pane_grid.rs
index e39ee797..032fcb6d 100644
--- a/style/src/pane_grid.rs
+++ b/style/src/pane_grid.rs
@@ -35,17 +35,8 @@ impl StyleSheet for Default {
}
}
-impl std::default::Default for Box<dyn StyleSheet> {
+impl std::default::Default for &'static dyn StyleSheet {
fn default() -> Self {
- Box::new(Default)
- }
-}
-
-impl<T> From<T> for Box<dyn StyleSheet>
-where
- T: 'static + StyleSheet,
-{
- fn from(style: T) -> Self {
- Box::new(style)
+ &Default
}
}