File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,8 @@ impl Shell {
308
308
}
309
309
#[ cfg( windows) ]
310
310
{
311
- if let ShellOut :: Stream { stream , .. } = & mut self . err {
312
- :: fwdansi:: write_ansi ( stream , message) ?;
311
+ if let ShellOut :: Stream { stderr , .. } = & mut self . output {
312
+ :: fwdansi:: write_ansi ( stderr , message) ?;
313
313
return Ok ( ( ) ) ;
314
314
}
315
315
}
@@ -495,6 +495,6 @@ mod imp {
495
495
fn default_err_erase_line ( shell : & mut Shell ) {
496
496
if let Some ( max_width) = imp:: stderr_width ( ) {
497
497
let blank = " " . repeat ( max_width) ;
498
- drop ( write ! ( shell. err . as_write ( ) , "{}\r " , blank) ) ;
498
+ drop ( write ! ( shell. output . stderr ( ) , "{}\r " , blank) ) ;
499
499
}
500
500
}
Original file line number Diff line number Diff line change 41
41
use std:: collections:: { BTreeSet , HashMap , HashSet } ;
42
42
use std:: env;
43
43
use std:: ffi:: OsString ;
44
- use std:: io:: Write ;
45
44
use std:: path:: { Path , PathBuf } ;
46
45
use std:: process:: { self , Command , ExitStatus } ;
47
46
use std:: str;
@@ -525,6 +524,7 @@ fn rustfix_and_fix(
525
524
fn exit_with ( status : ExitStatus ) -> ! {
526
525
#[ cfg( unix) ]
527
526
{
527
+ use std:: io:: Write ;
528
528
use std:: os:: unix:: prelude:: * ;
529
529
if let Some ( signal) = status. signal ( ) {
530
530
drop ( writeln ! (
You can’t perform that action at this time.
0 commit comments