diff options
author | 2021-10-20 19:06:53 +0700 | |
---|---|---|
committer | 2021-10-20 19:18:40 +0700 | |
commit | d39ad717ed0ab85acbe935d7ab883166b36e7bc7 (patch) | |
tree | 2be868e8d040a1cfa8c6d5bae7c16b1c3ee88fec /style | |
parent | cc560aca181202e827bfdc9afb6fc9fbe42f54d6 (diff) | |
download | iced-d39ad717ed0ab85acbe935d7ab883166b36e7bc7.tar.gz iced-d39ad717ed0ab85acbe935d7ab883166b36e7bc7.tar.bz2 iced-d39ad717ed0ab85acbe935d7ab883166b36e7bc7.zip |
Wire up styling to `Radio` in `iced_native`
Diffstat (limited to 'style')
-rw-r--r-- | style/src/radio.rs | 13 |
1 files changed, 2 insertions, 11 deletions
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<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 } } |