|
@ -63,13 +63,9 @@ impl CommandRunner for StdCommandRunner { |
|
|
.stdin(Stdio::piped())
|
|
|
.stdin(Stdio::piped())
|
|
|
.stdout(Stdio::piped())
|
|
|
.stdout(Stdio::piped())
|
|
|
.stderr(Stdio::piped())
|
|
|
.stderr(Stdio::piped())
|
|
|
.spawn()
|
|
|
|
|
|
.expect("Failed to spawn child process");
|
|
|
|
|
|
|
|
|
.spawn()?;
|
|
|
let stdin = child.stdin.as_mut().expect("Failed to open stdin");
|
|
|
let stdin = child.stdin.as_mut().expect("Failed to open stdin");
|
|
|
stdin
|
|
|
|
|
|
.write_all(input)
|
|
|
|
|
|
.await
|
|
|
|
|
|
.expect("Failed to write to stdin");
|
|
|
|
|
|
|
|
|
stdin.write_all(input).await?;
|
|
|
let res = child.wait_with_output().await;
|
|
|
let res = child.wait_with_output().await;
|
|
|
//println!("{:?}", res);
|
|
|
//println!("{:?}", res);
|
|
|
#[allow(clippy::let_and_return)]
|
|
|
#[allow(clippy::let_and_return)]
|
|
|