From ae0932aa11e2c4a3db1485e0adaf60f6b0db6f96 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 16 May 2025 23:02:11 +1000 Subject: [PATCH] Fmt gh_token.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/bin/src/gh_token.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/bin/src/gh_token.rs b/crates/bin/src/gh_token.rs index baed6230..28659f76 100644 --- a/crates/bin/src/gh_token.rs +++ b/crates/bin/src/gh_token.rs @@ -27,9 +27,7 @@ pub(super) async fn get() -> io::Result>> { .strip_prefix("password=") .map(|token| Zeroizing::new(token.into())) }) - .ok_or_else(|| { - io::Error::other("Password not found in `git credential fill` output") - }) + .ok_or_else(|| io::Error::other("Password not found in `git credential fill` output")) } trait CommandExt { @@ -83,9 +81,10 @@ impl CommandExt for Command { } else { zeroize_and_drop(stdout); - Err(io::Error::other( - format!("`{:?}` process exited with `{status}`", self.as_std()), - )) + Err(io::Error::other(format!( + "`{:?}` process exited with `{status}`", + self.as_std() + ))) } } }