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 @@ -172,7 +172,7 @@ impl KdlEntry {
172
172
// but just in case.
173
173
let s = x. value_repr . trim ( ) ;
174
174
// convert raw strings to new format
175
- let s = s. strip_prefix ( "r" ) . unwrap_or ( s) ;
175
+ let s = s. strip_prefix ( 'r' ) . unwrap_or ( s) ;
176
176
let s = if crate :: value:: is_plain_ident ( val) {
177
177
val. to_string ( )
178
178
} else if s
@@ -186,16 +186,16 @@ impl KdlEntry {
186
186
} else {
187
187
// `"` -> `"""` but also extra newlines need to be
188
188
// added because v2 strips the first and last ones.
189
- let s = s. replacen ( " \" " , "\" \" \" \n " , 1 ) ;
189
+ let s = s. replacen ( '\"' , "\" \" \" \n " , 1 ) ;
190
190
s. chars ( )
191
191
. rev ( )
192
192
. collect :: < String > ( )
193
- . replacen ( " \" " , "\" \" \" \n " , 1 )
193
+ . replacen ( '\"' , "\" \" \" \n " , 1 )
194
194
. chars ( )
195
195
. rev ( )
196
196
. collect :: < String > ( )
197
197
}
198
- } else if !s. starts_with ( "#" ) {
198
+ } else if !s. starts_with ( '#' ) {
199
199
// `/` is no longer an escaped char in v2.
200
200
s. replace ( "\\ /" , "/" )
201
201
} else {
You can’t perform that action at this time.
0 commit comments