diff options
| author | blake2-ppc <blake2-ppc> | 2013-07-31 21:07:44 +0200 |
|---|---|---|
| committer | blake2-ppc <blake2-ppc> | 2013-08-01 16:54:22 +0200 |
| commit | b18bd785ec489c5c0ae9f84e8144a37e414cdee5 (patch) | |
| tree | 1437f63026b4caec9695845d973a139bcd44122f /src/libstd/task/spawn.rs | |
| parent | 02bdf90cf6509f0f308ce133551a833c264b8960 (diff) | |
| download | rust-b18bd785ec489c5c0ae9f84e8144a37e414cdee5.tar.gz rust-b18bd785ec489c5c0ae9f84e8144a37e414cdee5.zip | |
std: Replace `for` with `do { .. }` expr where internal iterators are used
Diffstat (limited to 'src/libstd/task/spawn.rs')
| -rw-r--r-- | src/libstd/task/spawn.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 81db5e690a6..4558f8e32c1 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -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 }; } } |
