]> git.lizzy.rs Git - rust.git/commitdiff
libgetopts: Use iterators instead of old-style loops.
authorLuqman Aden <laden@csclub.uwaterloo.ca>
Thu, 12 Jun 2014 09:35:02 +0000 (05:35 -0400)
committerLuqman Aden <me@luqman.ca>
Wed, 9 Jul 2014 22:50:20 +0000 (15:50 -0700)
src/libgetopts/lib.rs

index bb3e90958f14229d266bfc986be70ba7d89e1952..23f16be1659f40fb1f1cda4e1c5f60f95ae5f402 100644 (file)
@@ -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 } {