From f1873459655e6f851b9a41658c946bd869a0d87b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 12 Apr 2023 20:58:51 -0500 Subject: [PATCH] chore: Upgrade anstyle --- Cargo.toml | 2 +- src/color.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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()