Skip to content

Commit bb9552e

Browse files
committed
libgetopts: Use iterators instead of old-style loops.
1 parent a9d112b commit bb9552e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ fn each_split_within<'a>(ss: &'a str, lim: uint, it: |&'a str| -> bool)
896896
*cont
897897
};
898898

899-
ss.char_indices().advance(|x| machine(&mut cont, x));
899+
ss.char_indices().all(|x| machine(&mut cont, x));
900900

901901
// Let the automaton 'run out' by supplying trailing whitespace
902902
while cont && match state { B | C => true, A => false } {

0 commit comments

Comments
 (0)