Skip to content

Commit

Permalink
deps: Upgrade yansi from 0.5.1 to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Mar 11, 2024
1 parent 47e547e commit 7238e4a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tabled = "0.15.0"
thiserror = "1.0.57"
tokio = { version = "1.29.1", features = ["full"] }
url = { version = "2.5.0" }
yansi = { version = "0.5" }
yansi = { version = "1.0" }
# [target.'cfg(linux)'.dependencies]
[target.'cfg(not(target_os = "windows"))'.dependencies]
# Our dependencies don't use OpenSSL on Windows
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn download_selected(songs: Vec<Song>, args: &Args) -> MusdResult<()> {
// println!("Start to download {}!", Paint::green(&selections[selection]));

if let Err(e) = download::download_music(sq_songs[selection], args) {
eprintln!("[ERROR]: {}", Paint::red(e));
eprintln!("[ERROR]: {}", Paint::red(&e));
std::process::exit(2);
}
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn main() {
let args = musd::Args::parse();
// Disable coloring by `CLICOLOR` env variable
if let Ok(true) = std::env::var("CLICOLOR").map(|v| v == "0") {
Paint::disable();
yansi::disable();
}

if args.build_info {
Expand All @@ -24,7 +24,7 @@ fn main() {
if let Err(e) =
musd::search(&args.music.join(" ")).and_then(|songs| musd::download_selected(songs, &args))
{
eprintln!("[ERROR]: {}", Paint::red(e));
eprintln!("[ERROR]: {}", Paint::red(&e));
std::process::exit(1);
}
}

0 comments on commit 7238e4a

Please sign in to comment.