Skip to content

Commit e3fca9b

Browse files
author
hyd-dev
committed
Import std::process::self
1 parent c504e3d commit e3fca9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cargo-miri/bin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::io::{self, BufRead, BufReader, BufWriter, Read, Write};
66
use std::iter::TakeWhile;
77
use std::ops::Not;
88
use std::path::{Path, PathBuf};
9-
use std::process::{Command, Stdio};
9+
use std::process::{self, Command};
1010

1111
use serde::{Deserialize, Serialize};
1212

@@ -233,7 +233,7 @@ fn exec(mut cmd: Command) {
233233
/// If it fails, fail this process with the same exit code.
234234
/// Otherwise, continue.
235235
fn exec_with_pipe(mut cmd: Command, input: &[u8]) {
236-
cmd.stdin(std::process::Stdio::piped());
236+
cmd.stdin(process::Stdio::piped());
237237
let mut child = cmd.spawn().expect("failed to spawn process");
238238
{
239239
let stdin = child.stdin.as_mut().expect("failed to open stdin");
@@ -493,8 +493,8 @@ fn detect_target_dir() -> PathBuf {
493493
}
494494
}
495495
let mut child = cmd
496-
.stdin(Stdio::null())
497-
.stdout(Stdio::piped())
496+
.stdin(process::Stdio::null())
497+
.stdout(process::Stdio::piped())
498498
.spawn()
499499
.expect("failed ro run `cargo metadata`");
500500
// Check this `Result` after `status.success()` is checked, so we don't print the error

0 commit comments

Comments
 (0)