File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -574,19 +574,19 @@ impl Cursor<'_> {
574574
575575 fn c_or_byte_string (
576576 & 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 ,
579579 single_quoted : Option < fn ( bool ) -> LiteralKind > ,
580580 ) -> TokenKind {
581581 match ( self . first ( ) , self . second ( ) , single_quoted) {
582- ( '\'' , _, Some ( mk_kind ) ) => {
582+ ( '\'' , _, Some ( single_quoted ) ) => {
583583 self . bump ( ) ;
584584 let terminated = self . single_quoted_string ( ) ;
585585 let suffix_start = self . pos_within_token ( ) ;
586586 if terminated {
587587 self . eat_literal_suffix ( ) ;
588588 }
589- let kind = mk_kind ( terminated) ;
589+ let kind = single_quoted ( terminated) ;
590590 Literal { kind, suffix_start }
591591 }
592592 ( '"' , _, _) => {
You can’t perform that action at this time.
0 commit comments