diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-06-12 05:35:02 -0400 |
|---|---|---|
| committer | Luqman Aden <me@luqman.ca> | 2014-07-09 15:50:20 -0700 |
| commit | bb9552ef00a986a6aed947b0399a1b620b74e096 (patch) | |
| tree | 9cad38440c4831cff6e87143837d4590a55a25ed | |
| parent | a9d112b3e57152462735a622360dc7852a164cba (diff) | |
| download | rust-bb9552ef00a986a6aed947b0399a1b620b74e096.tar.gz rust-bb9552ef00a986a6aed947b0399a1b620b74e096.zip | |
libgetopts: Use iterators instead of old-style loops.
| -rw-r--r-- | src/libgetopts/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs index bb3e90958f1..23f16be1659 100644 --- a/src/libgetopts/lib.rs +++ b/src/libgetopts/lib.rs @@ -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 } { |
