From 157a40a56882ec1959034fa499b383e7f633aaf8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 2 Nov 2021 16:02:05 +0700 Subject: Introduce generic lifetime to `Default` implementation for style sheets --- style/src/pane_grid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'style/src/pane_grid.rs') diff --git a/style/src/pane_grid.rs b/style/src/pane_grid.rs index 89cf39ea..a12ac3f5 100644 --- a/style/src/pane_grid.rs +++ b/style/src/pane_grid.rs @@ -35,7 +35,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } -- cgit