Skip to content

Commit 8a3ae46

Browse files
djcrami3l
authored andcommitted
Apply clippy suggestions from 1.81
1 parent d288805 commit 8a3ae46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli/self_update.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ pub(crate) fn install_proxies(process: &Process) -> Result<()> {
753753
// `tool_handles` later on. This'll allow us, afterwards, to actually
754754
// overwrite all the previous hard links with new ones.
755755
for tool in TOOLS {
756-
let tool_path = bin_path.join(&format!("{tool}{EXE_SUFFIX}"));
756+
let tool_path = bin_path.join(format!("{tool}{EXE_SUFFIX}"));
757757
if let Ok(handle) = Handle::from_path(&tool_path) {
758758
tool_handles.push(handle);
759759
if rustup == *tool_handles.last().unwrap() {
@@ -764,7 +764,7 @@ pub(crate) fn install_proxies(process: &Process) -> Result<()> {
764764
}
765765

766766
for tool in DUP_TOOLS {
767-
let tool_path = bin_path.join(&format!("{tool}{EXE_SUFFIX}"));
767+
let tool_path = bin_path.join(format!("{tool}{EXE_SUFFIX}"));
768768
if let Ok(handle) = Handle::from_path(&tool_path) {
769769
// Like above, don't clobber anything that's already hardlinked to
770770
// avoid extraneous errors from being returned.

tests/suite/cli_self_upd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ info: default toolchain set to 'stable-{0}'
9999
}
100100

101101
for tool in TOOLS.iter().chain(DUP_TOOLS.iter()) {
102-
let path = &cx.config.cargodir.join(&format!("bin/{tool}{EXE_SUFFIX}"));
102+
let path = &cx.config.cargodir.join(format!("bin/{tool}{EXE_SUFFIX}"));
103103
check(path);
104104
}
105105
}

0 commit comments

Comments
 (0)