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 @@ -754,10 +754,10 @@ impl Literal {
754
754
text. push ( '"' ) ;
755
755
for c in t. chars ( ) {
756
756
if c == '\'' {
757
- // escape_default turns this into "\'" which is unnecessary.
757
+ // escape_debug turns this into "\'" which is unnecessary.
758
758
text. push ( c) ;
759
759
} else {
760
- text. extend ( c. escape_default ( ) ) ;
760
+ text. extend ( c. escape_debug ( ) ) ;
761
761
}
762
762
}
763
763
text. push ( '"' ) ;
@@ -768,10 +768,10 @@ impl Literal {
768
768
let mut text = String :: new ( ) ;
769
769
text. push ( '\'' ) ;
770
770
if t == '"' {
771
- // escape_default turns this into '\"' which is unnecessary.
771
+ // escape_debug turns this into '\"' which is unnecessary.
772
772
text. push ( t) ;
773
773
} else {
774
- text. extend ( t. escape_default ( ) ) ;
774
+ text. extend ( t. escape_debug ( ) ) ;
775
775
}
776
776
text. push ( '\'' ) ;
777
777
Literal :: _new ( text)
You can’t perform that action at this time.
0 commit comments