From 8d9f748799dfe96239f614d09492eb9fa31dce36 Mon Sep 17 00:00:00 2001 From: Xithrius Date: Sat, 2 Jul 2022 19:28:45 -0700 Subject: [PATCH] Bumped rust and crate binary version GitHub doesn't support 1.62.0 yet in actions, so I couldn't use the new enum defaults. --- Cargo.lock | 2 +- Cargo.toml | 4 ++-- src/handlers/config.rs | 9 +++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4fa34354..e7a1a7f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1429,7 +1429,7 @@ dependencies = [ [[package]] name = "twitch-tui" -version = "2.0.0-alpha.5" +version = "2.0.0-alpha.6" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index 3e8a386e..18a83fef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "twitch-tui" -version = "2.0.0-alpha.5" +version = "2.0.0-alpha.6" authors = ["Xithrius "] edition = "2021" -rust-version = "1.58.1" +rust-version = "1.61.0" description = "Twitch chat in the terminal." documentation = "https://github.com/Xithrius/twitch-tui" homepage = "https://github.com/Xithrius/twitch-tui" diff --git a/src/handlers/config.rs b/src/handlers/config.rs index 0495a646..72cf80ad 100644 --- a/src/handlers/config.rs +++ b/src/handlers/config.rs @@ -124,16 +124,21 @@ impl Default for FrontendConfig { } } -#[derive(Serialize, Deserialize, Debug, Clone, Default)] +#[derive(Serialize, Deserialize, Debug, Clone)] #[serde(rename_all = "lowercase")] pub enum Palette { - #[default] Pastel, Vibrant, Warm, Cool, } +impl Default for Palette { + fn default() -> Self { + Palette::Pastel + } +} + impl FromStr for Palette { type Err = Error;