Skip to content

Commit acab1cd

Browse files
committed
Fix more windows breakage
1 parent 690525e commit acab1cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,8 @@ mod tests {
973973
setenv(~"USERPROFILE", ~"/home/PaloAlto");
974974
assert os::homedir() == Some(Path("/home/MountainView"));
975975

976-
option::iter(oldhome, |s| setenv(~"HOME", s));
977-
option::iter(olduserprofile,
976+
option::iter(&oldhome, |s| setenv(~"HOME", s));
977+
option::iter(&olduserprofile,
978978
|s| setenv(~"USERPROFILE", s));
979979
}
980980

0 commit comments

Comments
 (0)