Fix clippy warnings on build

This commit is contained in:
w1nst0n 2021-09-09 20:33:24 +02:00
commit 223be292dd
No known key found for this signature in database
GPG key ID: 34D27465928A0A1D
3 changed files with 11 additions and 25 deletions

20
Cargo.lock generated
View file

@ -2,16 +2,6 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "UadGui"
version = "0.1.0"
dependencies = [
"iced",
"serde",
"serde_json",
"static_init",
]
[[package]]
name = "ab_glyph"
version = "0.2.11"
@ -2377,6 +2367,16 @@ dependencies = [
"static_assertions",
]
[[package]]
name = "uad_gui"
version = "0.1.0"
dependencies = [
"iced",
"serde",
"serde_json",
"static_init",
]
[[package]]
name = "ucd-trie"
version = "0.1.3"

View file

@ -1,7 +1,7 @@
cargo-features = ["strip"] # nightly
[package]
name = "UadGui"
name = "uad_gui"
version = "0.1.0"
authors = ["w1nst0n"]
edition = "2021"

View file

@ -65,7 +65,6 @@ impl button::StyleSheet for PrimaryButton {
pub enum PackageButton {
Uninstall,
Restore,
Disabled,
}
impl button::StyleSheet for PackageButton {
@ -87,14 +86,6 @@ impl button::StyleSheet for PackageButton {
text_color: Color::from_rgb8(0xEE, 0xEE, 0xEE),
..button::Style::default()
},
Self::Disabled => button::Style {
background: Some(Background::Color(DISABLED_COLOR)),
border_color: Color::TRANSPARENT,
border_width: 2.0,
shadow_offset: Vector::new(0.0, 0.0),
text_color: Color::BLACK,
..button::Style::default()
},
}
}
@ -110,11 +101,6 @@ impl button::StyleSheet for PackageButton {
text_color: Color::WHITE,
..self.active()
},
Self::Disabled => button::Style {
background: Some(Background::Color(DISABLED_COLOR)),
text_color: Color::BLACK,
..self.active()
},
}
}
}