File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
use cell:: Cell ;
12
12
use comm;
13
13
use container:: Container ;
14
- use iterator:: Iterator ;
14
+ use iterator:: { Iterator , DoubleEndedIterator } ;
15
15
use option:: * ;
16
16
// use either::{Either, Left, Right};
17
17
// use rt::kill::BlockedTask;
@@ -87,7 +87,7 @@ pub fn select<A: Select>(ports: &mut [A]) -> uint {
87
87
// Task resumes. Now unblock ourselves from all the ports we blocked on.
88
88
// If the success index wasn't reset, 'take' will just take all of them.
89
89
// Iterate in reverse so the 'earliest' index that's ready gets returned.
90
- for ( index, port) in ports. mut_slice ( 0 , ready_index) . mut_rev_iter ( ) . enumerate ( ) {
90
+ for ( index, port) in ports. mut_slice ( 0 , ready_index) . mut_iter ( ) . enumerate ( ) . invert ( ) {
91
91
if port. unblock_from ( ) {
92
92
ready_index = index;
93
93
}
You can’t perform that action at this time.
0 commit comments