File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: io:: { self , IoSlice , IoSliceMut } ;
2
2
use crate :: mem;
3
3
use crate :: sys:: fd:: FileDesc ;
4
- use crate :: sys:: cvt_r;
4
+ use crate :: sys:: { cvt , cvt_r} ;
5
5
6
6
////////////////////////////////////////////////////////////////////////////////
7
7
// Anonymous pipes
@@ -10,7 +10,6 @@ use crate::sys::cvt_r;
10
10
pub struct AnonPipe ( FileDesc ) ;
11
11
12
12
pub fn anon_pipe ( ) -> io:: Result < ( AnonPipe , AnonPipe ) > {
13
- use crate :: sys:: cvt;
14
13
let mut fds = [ 0 ; 2 ] ;
15
14
16
15
// 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 {
22
22
default : Stdio ,
23
23
needs_stdin : bool ,
24
24
) -> io:: Result < ( Process , StdioPipes ) > {
25
- const CLOEXEC_MSG_FOOTER : & [ u8 ] = b"NOEX" ;
25
+ const CLOEXEC_MSG_FOOTER : [ u8 ; 4 ] = * b"NOEX" ;
26
26
27
27
let envp = self . capture_env ( ) ;
28
28
You can’t perform that action at this time.
0 commit comments