@@ -589,12 +589,12 @@ impl Write {
589589 } ,
590590 } ;
591591
592- let replacement: String = match lit. token . kind {
592+ let replacement: String = match lit. token_lit . kind {
593593 LitKind :: StrRaw ( _) | LitKind :: ByteStrRaw ( _) if matches ! ( fmtstr. style, StrStyle :: Raw ( _) ) => {
594- lit. token . symbol . as_str ( ) . replace ( '{' , "{{" ) . replace ( '}' , "}}" )
594+ lit. token_lit . symbol . as_str ( ) . replace ( '{' , "{{" ) . replace ( '}' , "}}" )
595595 } ,
596596 LitKind :: Str | LitKind :: ByteStr if matches ! ( fmtstr. style, StrStyle :: Cooked ) => {
597- lit. token . symbol . as_str ( ) . replace ( '{' , "{{" ) . replace ( '}' , "}}" )
597+ lit. token_lit . symbol . as_str ( ) . replace ( '{' , "{{" ) . replace ( '}' , "}}" )
598598 } ,
599599 LitKind :: StrRaw ( _)
600600 | LitKind :: Str
@@ -603,7 +603,7 @@ impl Write {
603603 | LitKind :: Integer
604604 | LitKind :: Float
605605 | LitKind :: Err => continue ,
606- LitKind :: Byte | LitKind :: Char => match lit. token . symbol . as_str ( ) {
606+ LitKind :: Byte | LitKind :: Char => match lit. token_lit . symbol . as_str ( ) {
607607 "\" " if matches ! ( fmtstr. style, StrStyle :: Cooked ) => "\\ \" " ,
608608 "\" " if matches ! ( fmtstr. style, StrStyle :: Raw ( 0 ) ) => continue ,
609609 "\\ \\ " if matches ! ( fmtstr. style, StrStyle :: Raw ( _) ) => "\\ " ,
@@ -614,7 +614,7 @@ impl Write {
614614 x => x,
615615 }
616616 . into ( ) ,
617- LitKind :: Bool => lit. token . symbol . as_str ( ) . deref ( ) . into ( ) ,
617+ LitKind :: Bool => lit. token_lit . symbol . as_str ( ) . deref ( ) . into ( ) ,
618618 } ;
619619
620620 if !fmt_spans. is_empty ( ) {
0 commit comments