Skip to content

Commit 94f1a5d

Browse files
committed
migrate to foreach
1 parent 7c21ccc commit 94f1a5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/select.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ pub fn select<A: Select>(ports: &mut [A]) -> uint {
5353
do sched.deschedule_running_task_and_then |sched, task| {
5454
let task_handles = task.make_selectable(ports.len());
5555

56-
for ports.mut_iter().zip(task_handles.consume_iter()).enumerate().advance
57-
|(index, (port, task_handle))| {
56+
foreach (index, (port, task_handle)) in
57+
ports.mut_iter().zip(task_handles.consume_iter()).enumerate() {
5858
// If one of the ports has data by now, it will wake the handle.
5959
if port.block_on(sched, task_handle) {
6060
ready_index = index;

0 commit comments

Comments
 (0)