@@ -589,12 +589,12 @@ impl Write {
589
589
} ,
590
590
} ;
591
591
592
- let replacement: String = match lit. token . kind {
592
+ let replacement: String = match lit. token_lit . kind {
593
593
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 ( '}' , "}}" )
595
595
} ,
596
596
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 ( '}' , "}}" )
598
598
} ,
599
599
LitKind :: StrRaw ( _)
600
600
| LitKind :: Str
@@ -603,7 +603,7 @@ impl Write {
603
603
| LitKind :: Integer
604
604
| LitKind :: Float
605
605
| 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 ( ) {
607
607
"\" " if matches ! ( fmtstr. style, StrStyle :: Cooked ) => "\\ \" " ,
608
608
"\" " if matches ! ( fmtstr. style, StrStyle :: Raw ( 0 ) ) => continue ,
609
609
"\\ \\ " if matches ! ( fmtstr. style, StrStyle :: Raw ( _) ) => "\\ " ,
@@ -614,7 +614,7 @@ impl Write {
614
614
x => x,
615
615
}
616
616
. into ( ) ,
617
- LitKind :: Bool => lit. token . symbol . as_str ( ) . deref ( ) . into ( ) ,
617
+ LitKind :: Bool => lit. token_lit . symbol . as_str ( ) . deref ( ) . into ( ) ,
618
618
} ;
619
619
620
620
if !fmt_spans. is_empty ( ) {
0 commit comments