@@ -372,7 +372,7 @@ fn string(input: Cursor) -> Result<Cursor, Reject> {
372
372
}
373
373
374
374
fn cooked_string ( mut input : Cursor ) -> Result < Cursor , Reject > {
375
- let mut chars = input. char_indices ( ) . peekable ( ) ;
375
+ let mut chars = input. char_indices ( ) ;
376
376
377
377
while let Some ( ( i, ch) ) = chars. next ( ) {
378
378
match ch {
@@ -396,7 +396,7 @@ fn cooked_string(mut input: Cursor) -> Result<Cursor, Reject> {
396
396
Some ( ( newline, ch @ '\n' ) ) | Some ( ( newline, ch @ '\r' ) ) => {
397
397
input = input. advance ( newline + 1 ) ;
398
398
trailing_backslash ( & mut input, ch as u8 ) ?;
399
- chars = input. char_indices ( ) . peekable ( ) ;
399
+ chars = input. char_indices ( ) ;
400
400
}
401
401
_ => break ,
402
402
} ,
@@ -540,7 +540,7 @@ fn raw_c_string(input: Cursor) -> Result<Cursor, Reject> {
540
540
}
541
541
542
542
fn cooked_c_string ( mut input : Cursor ) -> Result < Cursor , Reject > {
543
- let mut chars = input. char_indices ( ) . peekable ( ) ;
543
+ let mut chars = input. char_indices ( ) ;
544
544
545
545
while let Some ( ( i, ch) ) = chars. next ( ) {
546
546
match ch {
@@ -566,7 +566,7 @@ fn cooked_c_string(mut input: Cursor) -> Result<Cursor, Reject> {
566
566
Some ( ( newline, ch @ '\n' ) ) | Some ( ( newline, ch @ '\r' ) ) => {
567
567
input = input. advance ( newline + 1 ) ;
568
568
trailing_backslash ( & mut input, ch as u8 ) ?;
569
- chars = input. char_indices ( ) . peekable ( ) ;
569
+ chars = input. char_indices ( ) ;
570
570
}
571
571
_ => break ,
572
572
} ,
0 commit comments