Skip to content
2 changes: 1 addition & 1 deletion src/cli/proxy_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub async fn main(
current_dir: PathBuf,
process: &Process,
) -> anyhow::Result<ExitStatus> {
self_update::cleanup_self_updater(process)?;
self_update::cleanup_self_updater(&process.cargo_home()?.join("bin"))?;

let _setup = job::setup();
let mut args = process.args_os().skip(1);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ pub async fn main(
.bin("rustup")
.complete();

self_update::cleanup_self_updater(process)?;
self_update::cleanup_self_updater(&process.cargo_home()?.join("bin"))?;

use clap::error::ErrorKind::*;
let matches = match Rustup::try_parse_from(process.args_os()) {
Expand Down
Loading
Loading