From 4a013200c55fdc1a6b402031cf559b6512ee2174 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 14 Nov 2024 01:14:47 +1100 Subject: [PATCH] Fix confusing `.expect` msg Signed-off-by: Jiahao XU --- crates/bin/src/gh_token.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bin/src/gh_token.rs b/crates/bin/src/gh_token.rs index fb63a3465..7e14df162 100644 --- a/crates/bin/src/gh_token.rs +++ b/crates/bin/src/gh_token.rs @@ -62,6 +62,7 @@ impl CommandExt for Command { child .stdin .take() + .unwrap() .expect("Failed to open stdin") .write_all(input) .await?;