From 54a9a232f8110364972a8eef966b7b7477573f4f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 18 Oct 2021 14:48:33 +0700 Subject: Draw scrollbar in `Widget::draw` for `Scrollable` --- style/src/scrollable.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/scrollable.rs b/style/src/scrollable.rs index 65da9803..741d9d39 100644 --- a/style/src/scrollable.rs +++ b/style/src/scrollable.rs @@ -60,17 +60,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From d61cb58d92b6fcd520f665deb093f3747ffd5e5c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 18 Oct 2021 15:36:32 +0700 Subject: Wire up `container` styling to `iced_native` --- style/src/container.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/container.rs b/style/src/container.rs index 1ce6a7ca..6b0a129b 100644 --- a/style/src/container.rs +++ b/style/src/container.rs @@ -43,17 +43,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From 3140cdc4babcefc444f1c1d30eb0f5f4ed1df054 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 18 Oct 2021 16:02:30 +0700 Subject: Wire up styling to `Button` in `iced_native` --- style/src/button.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/button.rs b/style/src/button.rs index 2281e32f..608f344b 100644 --- a/style/src/button.rs +++ b/style/src/button.rs @@ -80,17 +80,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From 11bcb1342796a6fabc7c5b89a15c22c754b014ce Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 20 Oct 2021 15:50:42 +0700 Subject: Wire up styling to `Slider` in `iced_native` --- style/src/slider.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/slider.rs b/style/src/slider.rs index 9148fcbe..c6791c3d 100644 --- a/style/src/slider.rs +++ b/style/src/slider.rs @@ -79,17 +79,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From e914888f57394e4b67b40e42f1ad9df4ae8147e6 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 20 Oct 2021 18:40:39 +0700 Subject: Implement `Widget::draw` for `TextInput` --- style/src/text_input.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/text_input.rs b/style/src/text_input.rs index 19acea65..13b64cd5 100644 --- a/style/src/text_input.rs +++ b/style/src/text_input.rs @@ -73,17 +73,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From d39ad717ed0ab85acbe935d7ab883166b36e7bc7 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 20 Oct 2021 19:06:53 +0700 Subject: Wire up styling to `Radio` in `iced_native` --- style/src/radio.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/radio.rs b/style/src/radio.rs index c41b70c0..add12754 100644 --- a/style/src/radio.rs +++ b/style/src/radio.rs @@ -37,17 +37,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From 7c08c6bd138207b862933ee479752a4f1d18c4f2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 21 Oct 2021 18:50:27 +0700 Subject: Remove `Renderer` trait for `Checkbox` --- style/src/checkbox.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') diff --git a/style/src/checkbox.rs b/style/src/checkbox.rs index 566136bb..4c88faaa 100644 --- a/style/src/checkbox.rs +++ b/style/src/checkbox.rs @@ -39,17 +39,8 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From 41394b4e90a81a43c796c070e706e6aa4d8652bc Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 25 Oct 2021 15:37:28 +0700 Subject: Implement `Widget::draw` for `PaneGrid` --- style/src/pane_grid.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'style/src') 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 { +impl std::default::Default for &'static dyn StyleSheet { fn default() -> Self { - Box::new(Default) - } -} - -impl From for Box -where - T: 'static + StyleSheet, -{ - fn from(style: T) -> Self { - Box::new(style) + &Default } } -- cgit From d36ce33a95c277ee8fe45555df17daf21ef02ef8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 16:53:18 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Button` --- style/src/button.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/button.rs b/style/src/button.rs index 608f344b..ff4f61c3 100644 --- a/style/src/button.rs +++ b/style/src/button.rs @@ -80,8 +80,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From fcc282bd76c88f389d510411b0ae73e1a4eaf317 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 16:58:02 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Checkbox` --- style/src/checkbox.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/checkbox.rs b/style/src/checkbox.rs index 4c88faaa..09f997fb 100644 --- a/style/src/checkbox.rs +++ b/style/src/checkbox.rs @@ -39,8 +39,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From 40a5de581144886571504b762719f057dbb2e871 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:02:59 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Container` --- style/src/container.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/container.rs b/style/src/container.rs index 6b0a129b..a5dc700e 100644 --- a/style/src/container.rs +++ b/style/src/container.rs @@ -43,8 +43,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From 89d50c0243fcb70442c78bbff207d0328b33e158 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:04:44 +0700 Subject: Reintroduce `Box` for `style_sheet` in `PaneGrid` --- style/src/pane_grid.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/pane_grid.rs b/style/src/pane_grid.rs index 032fcb6d..89cf39ea 100644 --- a/style/src/pane_grid.rs +++ b/style/src/pane_grid.rs @@ -35,8 +35,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From 6504dca05995b376479c3d0bd9e47f5f6b601788 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:06:05 +0700 Subject: Introduce state lifetime for `style_sheet` in `PickList` --- style/src/pick_list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/pick_list.rs b/style/src/pick_list.rs index d1801e5f..ca1fbe17 100644 --- a/style/src/pick_list.rs +++ b/style/src/pick_list.rs @@ -62,9 +62,9 @@ impl std::default::Default for Box { } } -impl From for Box +impl<'a, T> From for Box where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) -- cgit From d758006ee91aa0fdb70eaa67abbfad36be02c7be Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:08:19 +0700 Subject: Introduce state lifetime for `style_sheet` in `ProgressBar` --- style/src/progress_bar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/progress_bar.rs b/style/src/progress_bar.rs index d0878c84..e829c68f 100644 --- a/style/src/progress_bar.rs +++ b/style/src/progress_bar.rs @@ -32,9 +32,9 @@ impl std::default::Default for Box { } } -impl From for Box +impl<'a, T> From for Box where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) -- cgit From bd7b086ec1f9d428945f05fb12bda157f9e77dfd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:14:10 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Radio` --- style/src/radio.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/radio.rs b/style/src/radio.rs index add12754..724ae807 100644 --- a/style/src/radio.rs +++ b/style/src/radio.rs @@ -37,8 +37,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From 48490c3d878da1e2760c7701e80586c3653d5bd8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:34:58 +0700 Subject: Introduce state lifetime for `style_sheet` in `Rule` --- style/src/rule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/rule.rs b/style/src/rule.rs index 221f48fb..7276bc19 100644 --- a/style/src/rule.rs +++ b/style/src/rule.rs @@ -110,9 +110,9 @@ impl std::default::Default for Box { } } -impl From for Box +impl<'a, T> From for Box where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) -- cgit From eed19dcf81334d0849744f1918ba880d5a7acc1c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:39:24 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Scrollable` --- style/src/scrollable.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/scrollable.rs b/style/src/scrollable.rs index 741d9d39..9de72add 100644 --- a/style/src/scrollable.rs +++ b/style/src/scrollable.rs @@ -60,8 +60,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From 0c76e0307ff7d4450c354812f8a25047f24948b4 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:42:43 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Slider` --- style/src/slider.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/slider.rs b/style/src/slider.rs index c6791c3d..918e7753 100644 --- a/style/src/slider.rs +++ b/style/src/slider.rs @@ -79,8 +79,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From 0d3c9ef7bd3d0a0abecdf8e8b5391e32773ca20e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:45:57 +0700 Subject: Reintroduce `Box` for `style_sheet` in `TextInput` --- style/src/text_input.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'style/src') diff --git a/style/src/text_input.rs b/style/src/text_input.rs index 13b64cd5..4260af84 100644 --- a/style/src/text_input.rs +++ b/style/src/text_input.rs @@ -73,8 +73,17 @@ impl StyleSheet for Default { } } -impl std::default::Default for &'static dyn StyleSheet { +impl std::default::Default for Box { fn default() -> Self { - &Default + Box::new(Default) + } +} + +impl<'a, T> From for Box +where + T: StyleSheet + 'a, +{ + fn from(style_sheet: T) -> Self { + Box::new(style_sheet) } } -- cgit From c9ed15782c3a62fcbfe56a141837b384ada82aaa Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 17:48:23 +0700 Subject: Introduce state lifetime for `style_sheet` in `Toggler` --- style/src/toggler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style/src') 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 { } } -impl From for Box +impl<'a, T> From for Box where - T: 'static + StyleSheet, + T: 'a + StyleSheet, { fn from(style: T) -> Self { Box::new(style) -- cgit From 631e95ee0be01dc7f5e5183e1429972aee37787f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 2 Nov 2021 15:03:29 +0700 Subject: Move `viewport` argument to last position in `mouse_interaction` methods This keeps the order of the arguments consistent with `draw`. --- style/src/rule.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'style/src') diff --git a/style/src/rule.rs b/style/src/rule.rs index 7276bc19..997bb1e9 100644 --- a/style/src/rule.rs +++ b/style/src/rule.rs @@ -1,5 +1,4 @@ //! Display a horizontal or vertical rule for dividing content. - use iced_core::Color; /// The fill mode of a rule. -- cgit 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/button.rs | 2 +- style/src/checkbox.rs | 2 +- style/src/container.rs | 2 +- style/src/pane_grid.rs | 2 +- style/src/pick_list.rs | 2 +- style/src/progress_bar.rs | 2 +- style/src/radio.rs | 2 +- style/src/rule.rs | 2 +- style/src/scrollable.rs | 2 +- style/src/slider.rs | 2 +- style/src/text_input.rs | 2 +- style/src/toggler.rs | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) (limited to 'style/src') diff --git a/style/src/button.rs b/style/src/button.rs index ff4f61c3..de2de4f4 100644 --- a/style/src/button.rs +++ b/style/src/button.rs @@ -80,7 +80,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/checkbox.rs b/style/src/checkbox.rs index 09f997fb..f8bc6241 100644 --- a/style/src/checkbox.rs +++ b/style/src/checkbox.rs @@ -39,7 +39,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/container.rs b/style/src/container.rs index a5dc700e..2f411611 100644 --- a/style/src/container.rs +++ b/style/src/container.rs @@ -43,7 +43,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } 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) } diff --git a/style/src/pick_list.rs b/style/src/pick_list.rs index ca1fbe17..ad96b201 100644 --- a/style/src/pick_list.rs +++ b/style/src/pick_list.rs @@ -56,7 +56,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/progress_bar.rs b/style/src/progress_bar.rs index e829c68f..a0195c7a 100644 --- a/style/src/progress_bar.rs +++ b/style/src/progress_bar.rs @@ -26,7 +26,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/radio.rs b/style/src/radio.rs index 724ae807..6fb1cb6c 100644 --- a/style/src/radio.rs +++ b/style/src/radio.rs @@ -37,7 +37,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/rule.rs b/style/src/rule.rs index 997bb1e9..12a40f7d 100644 --- a/style/src/rule.rs +++ b/style/src/rule.rs @@ -103,7 +103,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/scrollable.rs b/style/src/scrollable.rs index 9de72add..748ba888 100644 --- a/style/src/scrollable.rs +++ b/style/src/scrollable.rs @@ -60,7 +60,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/slider.rs b/style/src/slider.rs index 918e7753..1bb28b09 100644 --- a/style/src/slider.rs +++ b/style/src/slider.rs @@ -79,7 +79,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/text_input.rs b/style/src/text_input.rs index 4260af84..3d5817cc 100644 --- a/style/src/text_input.rs +++ b/style/src/text_input.rs @@ -73,7 +73,7 @@ impl StyleSheet for Default { } } -impl std::default::Default for Box { +impl<'a> std::default::Default for Box { fn default() -> Self { Box::new(Default) } diff --git a/style/src/toggler.rs b/style/src/toggler.rs index 16c014e6..c06a8cd1 100644 --- a/style/src/toggler.rs +++ b/style/src/toggler.rs @@ -41,7 +41,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