Fix clippy error on unit test CI (#503)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-10-28 11:48:16 +11:00 committed by GitHub
parent 3530f94243
commit 9ed04cf89b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -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))
} }
} }

View file

@ -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)

View file

@ -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())?;