Skip to content

Commit

Permalink
Fix clippy error on unit test CI (rust-lang#503)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Oct 28, 2022
1 parent 3530f94 commit 9ed04cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/bin/src/ui.rs
Expand Up @@ -77,7 +77,7 @@ impl UIThreadInner {
self.confirm_rx
.recv()
.await
.unwrap_or_else(|| Err(BinstallError::UserAbort))
.unwrap_or(Err(BinstallError::UserAbort))
}
}

Expand Down
4 changes: 1 addition & 3 deletions crates/binstalk/src/bins.rs
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crates/binstalk/src/ops/install.rs
Expand Up @@ -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())?;

Expand Down

0 comments on commit 9ed04cf

Please sign in to comment.