From 223be292dd3778385decae353a409f3dd914e366 Mon Sep 17 00:00:00 2001 From: w1nst0n Date: Thu, 9 Sep 2021 20:33:24 +0200 Subject: [PATCH] Fix clippy warnings on build --- Cargo.lock | 20 ++++++++++---------- Cargo.toml | 2 +- src/gui/style.rs | 14 -------------- 3 files changed, 11 insertions(+), 25 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59a8e4b..1c9691a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index caf8cca..3fba37d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ cargo-features = ["strip"] # nightly [package] -name = "UadGui" +name = "uad_gui" version = "0.1.0" authors = ["w1nst0n"] edition = "2021" diff --git a/src/gui/style.rs b/src/gui/style.rs index 8f0734f..313d411 100644 --- a/src/gui/style.rs +++ b/src/gui/style.rs @@ -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() - }, } } }