diff --git a/src/rustup-cli/self_update.rs b/src/rustup-cli/self_update.rs index 3f1e8bb658..6a0b8a7926 100644 --- a/src/rustup-cli/self_update.rs +++ b/src/rustup-cli/self_update.rs @@ -207,7 +207,7 @@ fn canonical_cargo_home() -> Result { if cfg!(unix) { path_str = String::from("$HOME/.cargo"); } else { - path_str = String::from(r"%HOMEPATH%\.cargo"); + path_str = String::from(r"%USERPROFILE%\.cargo"); } }