std: Replace for with do { .. } expr where internal iterators are used

This commit is contained in:
blake2-ppc
2013-07-31 21:07:44 +02:00
parent 02bdf90cf6
commit b18bd785ec
9 changed files with 94 additions and 76 deletions

View File

@@ -372,8 +372,9 @@ impl Drop for Taskgroup {
// with our own taskgroup, so long as both happen before we die.
// We remove ourself from every ancestor we can, so no cleanup; no
// break.
for each_ancestor(&mut this.ancestors, |_| {}) |ancestor_group| {
do each_ancestor(&mut this.ancestors, |_| {}) |ancestor_group| {
leave_taskgroup(ancestor_group, &me, false);
true
};
}
}