Skip to content

Commit a2e465c

Browse files
authored
Use USERPROFILE instead of HOMEPATH
1 parent de67271 commit a2e465c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustup-cli/self_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn canonical_cargo_home() -> Result<String> {
207207
if cfg!(unix) {
208208
path_str = String::from("$HOME/.cargo");
209209
} else {
210-
path_str = String::from(r"%HOMEPATH%\.cargo");
210+
path_str = String::from(r"%USERPROFILE%\.cargo");
211211
}
212212
}
213213

0 commit comments

Comments
 (0)