@@ -219,7 +219,6 @@ fn token_kind(input: Cursor) -> PResult<TokenTree> {
219
219
}
220
220
221
221
fn group ( input : Cursor ) -> PResult < Group > {
222
- let input = skip_whitespace ( input) ;
223
222
if let Ok ( input) = input. expect ( "(" ) {
224
223
let ( input, ts) = token_stream ( input) ?;
225
224
let input = skip_whitespace ( input) ;
@@ -307,7 +306,6 @@ fn literal_nocapture(input: Cursor) -> PResult<()> {
307
306
}
308
307
309
308
fn string ( input : Cursor ) -> PResult < ( ) > {
310
- let input = skip_whitespace ( input) ;
311
309
if let Ok ( input) = input. expect ( "\" " ) {
312
310
let ( input, ( ) ) = cooked_string ( input) ?;
313
311
let input = input. expect ( "\" " ) ?;
@@ -367,7 +365,6 @@ fn cooked_string(input: Cursor) -> PResult<()> {
367
365
}
368
366
369
367
fn byte_string ( input : Cursor ) -> PResult < ( ) > {
370
- let input = skip_whitespace ( input) ;
371
368
if let Ok ( input) = input. expect ( "b\" " ) {
372
369
let ( input, ( ) ) = cooked_byte_string ( input) ?;
373
370
let input = input. expect ( "\" " ) ?;
@@ -449,7 +446,6 @@ fn raw_string(input: Cursor) -> PResult<()> {
449
446
}
450
447
451
448
fn byte ( input : Cursor ) -> PResult < ( ) > {
452
- let input = skip_whitespace ( input) ;
453
449
let input = input. expect ( "b'" ) ?;
454
450
let ( input, ( ) ) = cooked_byte ( input) ?;
455
451
let input = input. expect ( "'" ) ?;
@@ -484,7 +480,6 @@ fn cooked_byte(input: Cursor) -> PResult<()> {
484
480
}
485
481
486
482
fn character ( input : Cursor ) -> PResult < ( ) > {
487
- let input = skip_whitespace ( input) ;
488
483
let input = input. expect ( "'" ) ?;
489
484
let ( input, ( ) ) = cooked_char ( input) ?;
490
485
let input = input. expect ( "'" ) ?;
@@ -760,7 +755,6 @@ fn doc_comment(input: Cursor) -> PResult<Vec<TokenTree>> {
760
755
}
761
756
762
757
fn doc_comment_contents ( input : Cursor ) -> PResult < ( & str , bool ) > {
763
- let input = skip_whitespace ( input) ;
764
758
if input. starts_with ( "//!" ) {
765
759
let input = input. advance ( 3 ) ;
766
760
let ( input, s) = take_until_newline_or_eof ( input) ;
0 commit comments