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 @@ -566,19 +566,19 @@ impl Cursor<'_> {
566
566
567
567
fn c_or_byte_string (
568
568
& mut self ,
569
- mk_kind : impl FnOnce ( bool ) -> LiteralKind ,
570
- mk_kind_raw : impl FnOnce ( Option < u8 > ) -> LiteralKind ,
569
+ mk_kind : fn ( bool ) -> LiteralKind ,
570
+ mk_kind_raw : fn ( Option < u8 > ) -> LiteralKind ,
571
571
single_quoted : Option < fn ( bool ) -> LiteralKind > ,
572
572
) -> TokenKind {
573
573
match ( self . first ( ) , self . second ( ) , single_quoted) {
574
- ( '\'' , _, Some ( mk_kind ) ) => {
574
+ ( '\'' , _, Some ( single_quoted ) ) => {
575
575
self . bump ( ) ;
576
576
let terminated = self . single_quoted_string ( ) ;
577
577
let suffix_start = self . pos_within_token ( ) ;
578
578
if terminated {
579
579
self . eat_literal_suffix ( ) ;
580
580
}
581
- let kind = mk_kind ( terminated) ;
581
+ let kind = single_quoted ( terminated) ;
582
582
Literal { kind, suffix_start }
583
583
}
584
584
( '"' , _, _) => {
You can’t perform that action at this time.
0 commit comments