diff --git a/Cargo.lock b/Cargo.lock index 4a8843e..9a34c9c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,6 +44,21 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" +[[package]] +name = "anstream" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd0982309face56a044e935a18bbffcddeb1ce72e69a3ecc3bafb56d4e959f37" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-wincon", + "concolor-override", + "concolor-query 0.3.3", + "is-terminal", + "utf8parse", +] + [[package]] name = "anstyle" version = "0.3.1" @@ -59,21 +74,6 @@ dependencies = [ "utf8parse", ] -[[package]] -name = "anstyle-stream" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb854bd007661547402bb1aeee4a00eda2cc9775afb43c9a5158f8706f448a2a" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-wincon", - "concolor-override", - "concolor-query 0.3.3", - "is-terminal", - "utf8parse", -] - [[package]] name = "anstyle-wincon" version = "0.2.0" @@ -1648,8 +1648,8 @@ name = "typos-cli" version = "1.13.25" dependencies = [ "ahash", + "anstream", "anstyle", - "anstyle-stream", "anyhow", "assert_fs", "atty", diff --git a/crates/typos-cli/Cargo.toml b/crates/typos-cli/Cargo.toml index c1e4168..3fe98ca 100644 --- a/crates/typos-cli/Cargo.toml +++ b/crates/typos-cli/Cargo.toml @@ -79,7 +79,7 @@ unic-emoji-char = "0.9.0" thread_local = "1.1.7" globset = "0.4.10" anstyle = "0.3.1" -anstyle-stream = "0.2.0" +anstream = "0.2.0" [dev-dependencies] assert_fs = "1.0" diff --git a/crates/typos-cli/src/bin/typos-cli/report.rs b/crates/typos-cli/src/bin/typos-cli/report.rs index 0b942f5..afc3d6c 100644 --- a/crates/typos-cli/src/bin/typos-cli/report.rs +++ b/crates/typos-cli/src/bin/typos-cli/report.rs @@ -3,7 +3,7 @@ use std::io::Write as _; use std::sync::atomic; -use anstyle_stream::stdout; +use anstream::stdout; use unicode_width::UnicodeWidthStr; use typos_cli::report::{Context, Message, Report, Typo};