migrate many for loops to foreach

This commit is contained in:
Daniel Micay 2013-08-01 03:16:42 -04:00
parent 5f59c46e0f
commit 1fc4db2d08
255 changed files with 1292 additions and 1294 deletions

View file

@ -26,7 +26,7 @@ pub fn each_pkg_parent_workspace(pkgid: &PkgId, action: &fn(&Path) -> bool) -> b
pkgid.remote_path.to_str(),
rust_path().to_str());
}
for workspaces.iter().advance |ws| {
foreach ws in workspaces.iter() {
if action(ws) {
break;
}