Skip to content

Commit

Permalink
libgetopts: Use iterators instead of old-style loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed Jul 9, 2014
1 parent a9d112b commit bb9552e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libgetopts/lib.rs
Expand Up @@ -896,7 +896,7 @@ fn each_split_within<'a>(ss: &'a str, lim: uint, it: |&'a str| -> bool)
*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 } {
Expand Down

0 comments on commit bb9552e

Please sign in to comment.