summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-21 18:50:27 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-21 18:50:27 +0700
commit7c08c6bd138207b862933ee479752a4f1d18c4f2 (patch)
tree879d8a6676dfc36171217d9b44b6e111a95392ab /style
parentb6ae87ae55301d6c15f56e6c7df077aabe6383de (diff)
downloadiced-7c08c6bd138207b862933ee479752a4f1d18c4f2.tar.gz
iced-7c08c6bd138207b862933ee479752a4f1d18c4f2.tar.bz2
iced-7c08c6bd138207b862933ee479752a4f1d18c4f2.zip
Remove `Renderer` trait for `Checkbox`
Diffstat (limited to 'style')
-rw-r--r--style/src/checkbox.rs13
1 files changed, 2 insertions, 11 deletions
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<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
}
}