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;