diff options
author | 2021-10-20 15:50:42 +0700 | |
---|---|---|
committer | 2021-10-20 15:50:42 +0700 | |
commit | 11bcb1342796a6fabc7c5b89a15c22c754b014ce (patch) | |
tree | d55c147d35d422b219bd813ec71d49bb09833951 /style | |
parent | e00a2e9b2d97147be5912a97362d1bf1705b7c4e (diff) | |
download | iced-11bcb1342796a6fabc7c5b89a15c22c754b014ce.tar.gz iced-11bcb1342796a6fabc7c5b89a15c22c754b014ce.tar.bz2 iced-11bcb1342796a6fabc7c5b89a15c22c754b014ce.zip |
Wire up styling to `Slider` in `iced_native`
Diffstat (limited to 'style')
-rw-r--r-- | style/src/slider.rs | 13 |
1 files changed, 2 insertions, 11 deletions
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<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 } } |