replace atty crate with std's isTerminal
This commit is contained in:
parent
52bdc37727
commit
31630859cc
5 changed files with 4 additions and 6 deletions
|
@ -6,7 +6,6 @@ edition = "2021"
|
|||
[lib]
|
||||
|
||||
[dependencies]
|
||||
atty = "0.2.13"
|
||||
libloading = "0.7.1"
|
||||
tracing = "0.1"
|
||||
rustc-rayon-core = { version = "0.5.0", optional = true }
|
||||
|
|
|
@ -519,7 +519,8 @@ fn multiple_output_types_to_stdout(
|
|||
output_types: &OutputTypes,
|
||||
single_output_file_is_stdout: bool,
|
||||
) -> bool {
|
||||
if atty::is(atty::Stream::Stdout) {
|
||||
use std::io::IsTerminal;
|
||||
if std::io::stdout().is_terminal() {
|
||||
// If stdout is a tty, check if multiple text output types are
|
||||
// specified by `--emit foo=- --emit bar=-` or `-o - --emit foo,bar`
|
||||
let named_text_types = output_types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue