rm some uses of the `advance` iterator method

This commit is contained in:
Daniel Micay 2013-09-14 15:51:02 -04:00
parent a05c4a1e5f
commit 8149e5c99f
1 changed files with 2 additions and 2 deletions

View File

@ -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]