mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +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
|
self.confirm_rx
|
||||||
.recv()
|
.recv()
|
||||||
.await
|
.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}
|
// Destination at install dir + base-name{.extension}
|
||||||
let dest = data
|
let dest = data.install_path.join(ctx.render("{ bin }{ binary-ext }")?);
|
||||||
.install_path
|
|
||||||
.join(&ctx.render("{ bin }{ binary-ext }")?);
|
|
||||||
|
|
||||||
let (dest, link) = if no_symlinks {
|
let (dest, link) = if no_symlinks {
|
||||||
(dest, None)
|
(dest, None)
|
||||||
|
|
|
@ -132,7 +132,7 @@ async fn install_from_source(
|
||||||
cmd.arg("--force");
|
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())?;
|
let mut child = jobserver_client.configure_and_run(&mut cmd, |cmd| cmd.spawn())?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue