remove each from vec, HashMap and HashSet

This commit is contained in:
Daniel Micay
2013-06-24 18:34:20 -04:00
parent 64ee9668a2
commit e67c48a591
43 changed files with 139 additions and 223 deletions

View File

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