Skip to content

Commit 7b970b7

Browse files
authored
Merge pull request #301 from epage/update
chore: Update dependencies
2 parents e037e1a + 62ed5c7 commit 7b970b7

File tree

4 files changed

+130
-49
lines changed

4 files changed

+130
-49
lines changed

Cargo.lock

Lines changed: 119 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ log = "0.4"
3636
env_logger = { version = "0.10", default-features = false, features = ["color"] }
3737
concolor = "0.1.1"
3838
concolor-clap = { version = "0.1.0", features = ["api"] }
39-
anstyle = "0.3.5"
40-
anstream = "0.2.6"
39+
anstyle = "1.0.0"
40+
anstream = "0.3.0"
4141
proc-exit = "2"
4242
eyre = "0.6"
4343
human-panic = "1"

src/bin/git-stack/logger.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ struct Palette {
5555
impl Palette {
5656
pub fn colored() -> Self {
5757
Self {
58-
error: anstyle::AnsiColor::Red | anstyle::Effects::BOLD,
59-
warn: anstyle::AnsiColor::Yellow.into(),
60-
debug: anstyle::AnsiColor::Blue.into(),
61-
trace: anstyle::AnsiColor::Cyan.into(),
58+
error: anstyle::AnsiColor::Red.on_default() | anstyle::Effects::BOLD,
59+
warn: anstyle::AnsiColor::Yellow.on_default(),
60+
debug: anstyle::AnsiColor::Blue.on_default(),
61+
trace: anstyle::AnsiColor::Cyan.on_default(),
6262
}
6363
}
6464

src/bin/git-stack/ops.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,11 @@ pub struct Palette {
424424
impl Palette {
425425
pub fn colored() -> Self {
426426
Self {
427-
error: anstyle::AnsiColor::Red | anstyle::Effects::BOLD,
428-
warn: anstyle::AnsiColor::Yellow | anstyle::Effects::BOLD,
429-
info: anstyle::AnsiColor::Blue | anstyle::Effects::BOLD,
430-
good: anstyle::AnsiColor::Cyan | anstyle::Effects::BOLD,
431-
highlight: anstyle::AnsiColor::Green | anstyle::Effects::BOLD,
427+
error: anstyle::AnsiColor::Red.on_default() | anstyle::Effects::BOLD,
428+
warn: anstyle::AnsiColor::Yellow.on_default() | anstyle::Effects::BOLD,
429+
info: anstyle::AnsiColor::Blue.on_default() | anstyle::Effects::BOLD,
430+
good: anstyle::AnsiColor::Cyan.on_default() | anstyle::Effects::BOLD,
431+
highlight: anstyle::AnsiColor::Green.on_default() | anstyle::Effects::BOLD,
432432
hint: anstyle::Effects::DIMMED.into(),
433433
}
434434
}

0 commit comments

Comments
 (0)