mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
libgetopts: Use iterators instead of old-style loops.
This commit is contained in:
@@ -896,7 +896,7 @@ enum LengthLimit {
|
||||
*cont
|
||||
};
|
||||
|
||||
ss.char_indices().advance(|x| machine(&mut cont, x));
|
||||
ss.char_indices().all(|x| machine(&mut cont, x));
|
||||
|
||||
// Let the automaton 'run out' by supplying trailing whitespace
|
||||
while cont && match state { B | C => true, A => false } {
|
||||
|
||||
Reference in New Issue
Block a user