mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix confusing .expect
msg
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
4c46446ee5
commit
6e46f66022
1 changed files with 1 additions and 6 deletions
|
@ -59,12 +59,7 @@ impl CommandExt for Command {
|
|||
let mut child = self.spawn()?;
|
||||
|
||||
if let Some(input) = input {
|
||||
child
|
||||
.stdin
|
||||
.take()
|
||||
.expect("Failed to open stdin")
|
||||
.write_all(input)
|
||||
.await?;
|
||||
child.stdin.take().unwrap().write_all(input).await?;
|
||||
}
|
||||
|
||||
let Output { status, stdout, .. } = child.wait_with_output().await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue