fix some clippy::style findings
comparison_to_empty iter_nth_zero for_kv_map manual_next_back redundant_pattern
This commit is contained in:
parent
8771282d4e
commit
ed4c5fef72
6 changed files with 15 additions and 12 deletions
|
@ -372,7 +372,7 @@ where
|
|||
callback(start..end, EscapeError::MultipleSkippedLinesWarning);
|
||||
}
|
||||
let tail = &tail[first_non_space..];
|
||||
if let Some(c) = tail.chars().nth(0) {
|
||||
if let Some(c) = tail.chars().next() {
|
||||
if c.is_whitespace() {
|
||||
// For error reporting, we would like the span to contain the character that was not
|
||||
// skipped. The +1 is necessary to account for the leading \ that started the escape.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue