diff options
| author | bors <bors@rust-lang.org> | 2013-06-25 15:22:55 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-25 15:22:55 -0700 |
| commit | efd1438770ae371406327304cb6ad4501db256ae (patch) | |
| tree | 9c1d80895844e59aeb5b1092c46b6e60a8de62f8 /src/libstd/task/spawn.rs | |
| parent | 4967bd0508a4d04797e0fff49517b7abbc086b74 (diff) | |
| parent | e44e33dfa999f4e3ce0b1811bc2ccdd5907b4a42 (diff) | |
| download | rust-efd1438770ae371406327304cb6ad4501db256ae.tar.gz rust-efd1438770ae371406327304cb6ad4501db256ae.zip | |
auto merge of #7373 : thestinger/rust/iterator, r=huonw
Diffstat (limited to 'src/libstd/task/spawn.rs')
| -rw-r--r-- | src/libstd/task/spawn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 77053f39677..04c0dd79ded 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -111,7 +111,7 @@ fn taskset_remove(tasks: &mut TaskSet, task: *rust_task) { assert!(was_present); } pub fn taskset_each(tasks: &TaskSet, blk: &fn(v: *rust_task) -> bool) -> bool { - tasks.each(|k| blk(*k)) + tasks.iter().advance(|k| blk(*k)) } // One of these per group of linked-failure tasks. |
