diff options
-rw-r--r-- | src/poem/read/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poem/read/parse.rs b/src/poem/read/parse.rs index 0dbdf0f..27c4728 100644 --- a/src/poem/read/parse.rs +++ b/src/poem/read/parse.rs @@ -30,7 +30,7 @@ pub fn next(chars: &mut Chars, i: &mut usize, otherwise: Rune, ahead: Vec<(char, // Check if that next character matches any characters in ahead for (c, rune) in ahead.iter() { if next == *c { - chars.into_iter().next(); + chars.next(); *i += 1; return *rune; } |