mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fmt gh_token.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
17914a09e5
commit
ae0932aa11
1 changed files with 5 additions and 6 deletions
|
@ -27,9 +27,7 @@ pub(super) async fn get() -> io::Result<Zeroizing<Box<str>>> {
|
|||
.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()
|
||||
)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue