File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ serde = "1.0"
25
25
serde_json = " 1.0"
26
26
serde_derive = " 1.0"
27
27
ciborium = " 0.2.0"
28
- atty = " 0.2 .6"
28
+ is-terminal = " 0.4 .6"
29
29
clap = { version = " 3.1" , default-features = false , features = [" std" ] }
30
30
walkdir = " 2.3"
31
31
tinytemplate = " 1.1"
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ extern crate approx;
36
36
#[ cfg( test) ]
37
37
extern crate quickcheck;
38
38
39
+ use is_terminal:: IsTerminal ;
39
40
use regex:: Regex ;
40
41
41
42
#[ cfg( feature = "real_blackbox" ) ]
@@ -76,6 +77,7 @@ use std::cell::RefCell;
76
77
use std:: collections:: HashSet ;
77
78
use std:: default:: Default ;
78
79
use std:: env;
80
+ use std:: io:: stdout;
79
81
use std:: net:: TcpStream ;
80
82
use std:: path:: { Path , PathBuf } ;
81
83
use std:: process:: Command ;
@@ -1060,7 +1062,7 @@ https://bheisler.github.io/criterion.rs/book/faq.html
1060
1062
} else {
1061
1063
CliVerbosity :: Normal
1062
1064
} ;
1063
- let stdout_isatty = atty :: is ( atty :: Stream :: Stdout ) ;
1065
+ let stdout_isatty = stdout ( ) . is_terminal ( ) ;
1064
1066
let mut enable_text_overwrite = stdout_isatty && !verbose && !debug_enabled ( ) ;
1065
1067
let enable_text_coloring;
1066
1068
match matches. value_of ( "color" ) {
You can’t perform that action at this time.
0 commit comments