Skip to content

Commit a44476a

Browse files
committed
Revert some changes.
1 parent b2c8c70 commit a44476a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

library/std/src/sys/unix/pipe.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::io::{self, IoSlice, IoSliceMut};
22
use crate::mem;
33
use 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;
1010
pub struct AnonPipe(FileDesc);
1111

1212
pub 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

library/std/src/sys/unix/process/process_unix.rs

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)