From 9cf271fe96b474d514b1052935db70c4056cf076 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Sep 2012 21:41:37 -0700 Subject: De-mode vec::each() and many of the str iteration routines Note that the method foo.each() is not de-moded, nor the other vec routines. --- src/libcore/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/task.rs') diff --git a/src/libcore/task.rs b/src/libcore/task.rs index adeebcf344e..070da8ffd4a 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -888,7 +888,7 @@ fn taskset_remove(tasks: &mut TaskSet, task: *rust_task) { assert was_present; } fn taskset_each(tasks: &TaskSet, blk: fn(+*rust_task) -> bool) { - tasks.each_key(blk) + tasks.each_key(|k| blk(*k)) } // One of these per group of linked-failure tasks. -- cgit 1.4.1-3-g733a5