Skip to content

Commit

Permalink
Bumped rust and crate binary version
Browse files Browse the repository at this point in the history
GitHub doesn't support 1.62.0 yet in actions, so I couldn't use the new enum defaults.
  • Loading branch information
Xithrius committed Jul 3, 2022
1 parent 9e36610 commit 8d9f748
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "twitch-tui"
version = "2.0.0-alpha.5"
version = "2.0.0-alpha.6"
authors = ["Xithrius <[email protected]>"]
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"
Expand Down
9 changes: 7 additions & 2 deletions src/handlers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8d9f748

Please sign in to comment.