File tree Expand file tree Collapse file tree 3 files changed +3
-43
lines changed Expand file tree Collapse file tree 3 files changed +3
-43
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::cell::RefCell;
22use std:: env;
33use std:: ffi:: OsString ;
44use std:: fmt:: Debug ;
5- use std:: io;
5+ use std:: io:: { self , IsTerminal } ;
66use std:: panic;
77use std:: path:: PathBuf ;
88use std:: sync:: Once ;
@@ -31,8 +31,6 @@ use cwdsource::*;
3131use filesource:: * ;
3232use varsource:: * ;
3333
34- use crate :: utils:: tty:: { stderr_isatty, stdout_isatty} ;
35-
3634/// An abstraction for the current process.
3735///
3836/// This acts as a clonable proxy to the global state provided by some key OS
@@ -186,8 +184,8 @@ pub struct OSProcess {
186184impl OSProcess {
187185 pub fn new ( ) -> Self {
188186 OSProcess {
189- stderr_is_a_tty : stderr_isatty ( ) ,
190- stdout_is_a_tty : stdout_isatty ( ) ,
187+ stderr_is_a_tty : io :: stderr ( ) . is_terminal ( ) ,
188+ stdout_is_a_tty : io :: stdout ( ) . is_terminal ( ) ,
191189 }
192190 }
193191}
Original file line number Diff line number Diff line change 22pub ( crate ) mod notifications;
33pub mod raw;
44pub ( crate ) mod toml_utils;
5- pub ( crate ) mod tty;
65pub ( crate ) mod units;
76#[ allow( clippy:: module_inception) ]
87pub mod utils;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments