mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00
Fix clippy error on unit test CI (#503)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3530f94243
commit
9ed04cf89b
3 changed files with 3 additions and 5 deletions
|
@ -77,7 +77,7 @@ impl UIThreadInner {
|
|||
self.confirm_rx
|
||||
.recv()
|
||||
.await
|
||||
.unwrap_or_else(|| Err(BinstallError::UserAbort))
|
||||
.unwrap_or(Err(BinstallError::UserAbort))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -121,9 +121,7 @@ impl BinFile {
|
|||
};
|
||||
|
||||
// Destination at install dir + base-name{.extension}
|
||||
let dest = data
|
||||
.install_path
|
||||
.join(&ctx.render("{ bin }{ binary-ext }")?);
|
||||
let dest = data.install_path.join(ctx.render("{ bin }{ binary-ext }")?);
|
||||
|
||||
let (dest, link) = if no_symlinks {
|
||||
(dest, None)
|
||||
|
|
|
@ -132,7 +132,7 @@ async fn install_from_source(
|
|||
cmd.arg("--force");
|
||||
}
|
||||
|
||||
let command_string = format!("{:?}", cmd);
|
||||
let command_string = format!("{cmd:?}");
|
||||
|
||||
let mut child = jobserver_client.configure_and_run(&mut cmd, |cmd| cmd.spawn())?;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue