diff options
author | 2023-09-20 04:51:08 +0200 | |
---|---|---|
committer | 2023-09-20 04:51:08 +0200 | |
commit | 42ed90bc6f92b2085d193e7f143430b8d3847c21 (patch) | |
tree | 708166baa85036ab80ee96f7379a8767b7691da6 /style | |
parent | 6c386e90a12fd26da12541da3f086dddb7211c0c (diff) | |
download | iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.tar.gz iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.tar.bz2 iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.zip |
Fix `clippy::default_trait_access`
Diffstat (limited to 'style')
-rw-r--r-- | style/src/theme.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs index 893d7202..3c1f2de6 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -393,7 +393,7 @@ impl container::StyleSheet for Theme { fn appearance(&self, style: &Self::Style) -> container::Appearance { match style { - Container::Transparent => Default::default(), + Container::Transparent => container::Appearance::default(), Container::Box => { let palette = self.extended_palette(); @@ -904,7 +904,7 @@ impl svg::StyleSheet for Theme { fn appearance(&self, style: &Self::Style) -> svg::Appearance { match style { - Svg::Default => Default::default(), + Svg::Default => svg::Appearance::default(), Svg::Custom(custom) => custom.appearance(self), } } @@ -1053,7 +1053,7 @@ impl text::StyleSheet for Theme { fn appearance(&self, style: Self::Style) -> text::Appearance { match style { - Text::Default => Default::default(), + Text::Default => text::Appearance::default(), Text::Color(c) => text::Appearance { color: Some(c) }, } } |