Skip to content

Commit 900c5cf

Browse files
xosnrdevKobzol
authored andcommitted
chore: drop atty
1 parent 5b2ea99 commit 900c5cf

3 files changed

Lines changed: 1 addition & 23 deletions

File tree

Cargo.lock

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

crates/hyperqueue/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ bitflags = { workspace = true }
3939
humantime = "2"
4040
num_cpus = "1"
4141
cli-table = { version = "0.5", default-features = false }
42-
atty = "0.2"
4342
dirs = "6"
4443
nom = "7"
4544
nom-supreme = { version = "0.8" }

crates/hyperqueue/src/bin/hq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ fn make_global_settings(opts: CommonOpts) -> GlobalSettings {
331331
let color_policy = match opts.colors {
332332
ColorPolicy::Always => ColorChoice::AlwaysAnsi,
333333
ColorPolicy::Auto => {
334-
if atty::is(atty::Stream::Stdout) {
334+
if io::stdout().is_terminal() {
335335
ColorChoice::Auto
336336
} else {
337337
ColorChoice::Never

0 commit comments

Comments
 (0)