diff options
author | 2023-09-20 15:52:41 +0200 | |
---|---|---|
committer | 2023-09-20 15:52:41 +0200 | |
commit | 2f7ff1471d1f6119c769c77fa138a63e95b5d881 (patch) | |
tree | 83f20609fa20d534ef8bd32b3851cae03cbadbb2 /style | |
parent | e8b01eb5435500c4b4d3135dde3d9e5910aca89e (diff) | |
parent | 33d780f691829ecd32f3a218008fcb40e005deb4 (diff) | |
download | iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.tar.gz iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.tar.bz2 iced-2f7ff1471d1f6119c769c77fa138a63e95b5d881.zip |
Merge pull request #2096 from iced-rs/fix/some-more-lints
Fix some `clippy::pedantic` lints
Diffstat (limited to '')
-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) }, } } |