We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393d18c commit b13a799Copy full SHA for b13a799
src/proto/console/gop.rs
@@ -444,10 +444,10 @@ impl<'gop> Iterator for ModeIter<'gop> {
444
fn next(&mut self) -> Option<Self::Item> {
445
let index = self.current;
446
if index < self.max {
447
- let m = self.gop.query_mode(index).ok().or_else(|| self.next());
+ let m = self.gop.query_mode(index);
448
self.current += 1;
449
450
- m
+ m.ok().or_else(|| self.next())
451
} else {
452
None
453
}
0 commit comments