diff --git a/crates/bin/src/gh_token.rs b/crates/bin/src/gh_token.rs index fb63a346..9cc7adeb 100644 --- a/crates/bin/src/gh_token.rs +++ b/crates/bin/src/gh_token.rs @@ -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?;