Skip to content

Commit

Permalink
chore: Upgrade anstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 13, 2023
1 parent afc6583 commit f187345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ normalize-line-endings = { version = "0.3.0", optional = true }
regex = { version="1.0", optional = true }
float-cmp = { version="0.9", optional = true }
itertools = "0.10"
anstyle = "0.3.0"
anstyle = "1.0.0"

[dev-dependencies]
predicates-tree = { version = "1.0", path = "crates/tree" }
Expand Down
6 changes: 3 additions & 3 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ impl Palette {
pub(crate) fn new(alternate: bool) -> Self {
if alternate && cfg!(feature = "color") {
Self {
description: anstyle::AnsiColor::Blue | anstyle::Effects::BOLD,
var: anstyle::AnsiColor::Red | anstyle::Effects::BOLD,
expected: anstyle::AnsiColor::Green | anstyle::Effects::BOLD,
description: anstyle::AnsiColor::Blue.on_default() | anstyle::Effects::BOLD,
var: anstyle::AnsiColor::Red.on_default() | anstyle::Effects::BOLD,
expected: anstyle::AnsiColor::Green.on_default() | anstyle::Effects::BOLD,
}
} else {
Self::plain()
Expand Down

0 comments on commit f187345

Please sign in to comment.