File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -319,17 +319,17 @@ where
319
319
where
320
320
F : FnMut ( Range < usize > , Result < char , EscapeError > ) ,
321
321
{
322
- let str = chars. as_str ( ) ;
323
- let first_non_space = str
322
+ let tail = chars. as_str ( ) ;
323
+ let first_non_space = tail
324
324
. bytes ( )
325
325
. position ( |b| b != b' ' && b != b'\t' && b != b'\n' && b != b'\r' )
326
- . unwrap_or ( str . len ( ) ) ;
327
- if str [ 1 ..first_non_space] . contains ( '\n' ) {
326
+ . unwrap_or ( tail . len ( ) ) ;
327
+ if tail [ 1 ..first_non_space] . contains ( '\n' ) {
328
328
// The +1 accounts for the escaping slash.
329
329
let end = start + first_non_space + 1 ;
330
330
callback ( start..end, Err ( EscapeError :: MultipleSkippedLinesWarning ) ) ;
331
331
}
332
- let tail = & str [ first_non_space..] ;
332
+ let tail = & tail [ first_non_space..] ;
333
333
if let Some ( c) = tail. chars ( ) . nth ( 0 ) {
334
334
// For error reporting, we would like the span to contain the character that was not
335
335
// skipped. The +1 is necessary to account for the leading \ that started the escape.
You can’t perform that action at this time.
0 commit comments