Skip to content

Commit b2115c9

Browse files
committed
Fix unnessessary while let
1 parent 3bc233a commit b2115c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/src/fstring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl<'a> FStringParser<'a> {
197197
}
198198
'"' | '\'' => {
199199
expression.push(ch);
200-
while let Some(next) = self.chars.next() {
200+
for next in &mut self.chars {
201201
expression.push(next);
202202
if next == ch {
203203
break;

0 commit comments

Comments
 (0)