Skip to content

Commit e6aafbc

Browse files
committed
move import to fix warning with emscripten target
1 parent c492355 commit e6aafbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl Command {
279279
stdio: ChildPipes,
280280
maybe_envp: Option<&CStringArray>,
281281
) -> Result<!, io::Error> {
282-
use crate::sys::{self, cvt_nz, cvt_r};
282+
use crate::sys::{self, cvt_r};
283283

284284
if let Some(fd) = stdio.stdin.fd() {
285285
cvt_r(|| libc::dup2(fd, libc::STDIN_FILENO))?;
@@ -324,6 +324,7 @@ impl Command {
324324
#[cfg(not(target_os = "emscripten"))]
325325
{
326326
use crate::mem::MaybeUninit;
327+
use crate::sys::cvt_nz;
327328
// Reset signal handling so the child process starts in a
328329
// standardized state. libstd ignores SIGPIPE, and signal-handling
329330
// libraries often set a mask. Child processes inherit ignored

0 commit comments

Comments
 (0)