mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
Fix more windows breakage
This commit is contained in:
+2
-2
@@ -973,8 +973,8 @@ fn homedir() {
|
||||
setenv(~"USERPROFILE", ~"/home/PaloAlto");
|
||||
assert os::homedir() == Some(Path("/home/MountainView"));
|
||||
|
||||
option::iter(oldhome, |s| setenv(~"HOME", s));
|
||||
option::iter(olduserprofile,
|
||||
option::iter(&oldhome, |s| setenv(~"HOME", s));
|
||||
option::iter(&olduserprofile,
|
||||
|s| setenv(~"USERPROFILE", s));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user