diff --git a/Cargo.toml b/Cargo.toml index 079eda1..cf89b09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/src/color.rs b/src/color.rs index 154f97c..f1b6a21 100644 --- a/src/color.rs +++ b/src/color.rs @@ -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()