Skip to content

Commit

Permalink
Fix confusing .expect msg
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Nov 13, 2024
1 parent 4c46446 commit 6e46f66
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/bin/src/gh_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit 6e46f66

Please sign in to comment.