File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11use crate :: io:: { self , IoSlice , IoSliceMut } ;
22use crate :: mem;
33use crate :: sys:: fd:: FileDesc ;
4- use crate :: sys:: cvt_r;
4+ use crate :: sys:: { cvt , cvt_r} ;
55
66////////////////////////////////////////////////////////////////////////////////
77// Anonymous pipes
@@ -10,7 +10,6 @@ use crate::sys::cvt_r;
1010pub struct AnonPipe ( FileDesc ) ;
1111
1212pub fn anon_pipe ( ) -> io:: Result < ( AnonPipe , AnonPipe ) > {
13- use crate :: sys:: cvt;
1413 let mut fds = [ 0 ; 2 ] ;
1514
1615 // The only known way right now to create atomically set the CLOEXEC flag is
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ impl Command {
2222 default : Stdio ,
2323 needs_stdin : bool ,
2424 ) -> io:: Result < ( Process , StdioPipes ) > {
25- const CLOEXEC_MSG_FOOTER : & [ u8 ] = b"NOEX" ;
25+ const CLOEXEC_MSG_FOOTER : [ u8 ; 4 ] = * b"NOEX" ;
2626
2727 let envp = self . capture_env ( ) ;
2828
You can’t perform that action at this time.
0 commit comments