diff --git a/parser/src/fstring.rs b/parser/src/fstring.rs index 34928d3a7..6910ddc93 100644 --- a/parser/src/fstring.rs +++ b/parser/src/fstring.rs @@ -197,7 +197,7 @@ impl<'a> FStringParser<'a> { } '"' | '\'' => { expression.push(ch); - while let Some(next) = self.chars.next() { + for next in &mut self.chars { expression.push(next); if next == ch { break;