Skip to content

Commit a45fc3b

Browse files
committed
chore: Update anstyle/anstream
1 parent c6d3495 commit a45fc3b

File tree

3 files changed

+109
-43
lines changed

3 files changed

+109
-43
lines changed

Cargo.lock

+105-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ predicates-tree = "1.0.1"
5858
doc-comment = "0.3"
5959
wait-timeout = "0.2.0"
6060
bstr = "1.0.1"
61-
anstream = { version = "0.2.2", optional = true }
62-
anstyle = "0.3.1"
61+
anstream = { version = "0.3.0", optional = true }
62+
anstyle = "1.0.0"
6363

6464
[dev-dependencies]
6565
escargot = "0.5"

src/color.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ impl Palette {
88
pub(crate) fn color() -> Self {
99
if cfg!(feature = "color") {
1010
Self {
11-
key: anstyle::AnsiColor::Blue | anstyle::Effects::BOLD,
12-
value: anstyle::AnsiColor::Yellow | anstyle::Effects::BOLD,
11+
key: anstyle::AnsiColor::Blue.on_default() | anstyle::Effects::BOLD,
12+
value: anstyle::AnsiColor::Yellow.on_default() | anstyle::Effects::BOLD,
1313
}
1414
} else {
1515
Self::plain()

0 commit comments

Comments
 (0)