summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-20 18:40:39 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-20 18:40:39 +0700
commite914888f57394e4b67b40e42f1ad9df4ae8147e6 (patch)
tree8aa199ea229941e7861e63b0b6bd7994dbca3ede /style
parent954d6349a8cd5505d99403285ce9617c65a63a2b (diff)
downloadiced-e914888f57394e4b67b40e42f1ad9df4ae8147e6.tar.gz
iced-e914888f57394e4b67b40e42f1ad9df4ae8147e6.tar.bz2
iced-e914888f57394e4b67b40e42f1ad9df4ae8147e6.zip
Implement `Widget::draw` for `TextInput`
Diffstat (limited to 'style')
-rw-r--r--style/src/text_input.rs13
1 files changed, 2 insertions, 11 deletions
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<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
}
}