File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -574,19 +574,19 @@ impl Cursor<'_> {
574
574
575
575
fn c_or_byte_string (
576
576
& mut self ,
577
- mk_kind : impl FnOnce ( bool ) -> LiteralKind ,
578
- mk_kind_raw : impl FnOnce ( Option < u8 > ) -> LiteralKind ,
577
+ mk_kind : fn ( bool ) -> LiteralKind ,
578
+ mk_kind_raw : fn ( Option < u8 > ) -> LiteralKind ,
579
579
single_quoted : Option < fn ( bool ) -> LiteralKind > ,
580
580
) -> TokenKind {
581
581
match ( self . first ( ) , self . second ( ) , single_quoted) {
582
- ( '\'' , _, Some ( mk_kind ) ) => {
582
+ ( '\'' , _, Some ( single_quoted ) ) => {
583
583
self . bump ( ) ;
584
584
let terminated = self . single_quoted_string ( ) ;
585
585
let suffix_start = self . pos_within_token ( ) ;
586
586
if terminated {
587
587
self . eat_literal_suffix ( ) ;
588
588
}
589
- let kind = mk_kind ( terminated) ;
589
+ let kind = single_quoted ( terminated) ;
590
590
Literal { kind, suffix_start }
591
591
}
592
592
( '"' , _, _) => {
You can’t perform that action at this time.
0 commit comments