rm some uses of the advance iterator method
This commit is contained in:
parent
a05c4a1e5f
commit
8149e5c99f
1 changed files with 2 additions and 2 deletions
|
|
@ -1895,8 +1895,8 @@ mod tests {
|
|||
setenv("USERPROFILE", "/home/PaloAlto");
|
||||
assert_eq!(os::homedir(), Some(Path("/home/MountainView")));
|
||||
|
||||
oldhome.iter().advance(|s| { setenv("HOME", *s); true });
|
||||
olduserprofile.iter().advance(|s| { setenv("USERPROFILE", *s); true });
|
||||
for s in oldhome.iter() { setenv("HOME", *s) }
|
||||
for s in olduserprofile.iter() { setenv("USERPROFILE", *s) }
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue