File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- use crate :: io:: CmdIn ;
21use crate :: CmdResult ;
32use log:: info;
43use os_pipe:: PipeReader ;
@@ -15,12 +14,12 @@ pub enum CmdChild {
1514 ThreadChild {
1615 child : JoinHandle < CmdResult > ,
1716 cmd : String ,
18- stderr : Option < CmdIn > ,
17+ stderr : Option < PipeReader > ,
1918 } ,
2019 SyncChild {
2120 output : Option < PipeReader > ,
2221 cmd : String ,
23- stderr : Option < CmdIn > ,
22+ stderr : Option < PipeReader > ,
2423 } ,
2524}
2625
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ pub struct Cmd {
353353 stdin_redirect : Option < CmdIn > ,
354354 stdout_redirect : Option < CmdOut > ,
355355 stderr_redirect : Option < CmdOut > ,
356- stderr_logging : Option < CmdIn > , // for builtin/custom commands
356+ stderr_logging : Option < PipeReader > , // for builtin/custom commands
357357}
358358
359359impl Default for Cmd {
@@ -575,7 +575,7 @@ impl Cmd {
575575 // set up error pipe
576576 let ( pipe_reader, pipe_writer) = os_pipe:: pipe ( ) ?;
577577 self . stderr_redirect = Some ( CmdOut :: CmdPipe ( pipe_writer) ) ;
578- self . stderr_logging = Some ( CmdIn :: CmdPipe ( pipe_reader) ) ;
578+ self . stderr_logging = Some ( pipe_reader) ;
579579 }
580580
581581 if let Some ( pipe) = pipe_in. take ( ) {
You can’t perform that action at this time.
0 commit comments