1
Fork 0

fix some clippy::style findings

comparison_to_empty
iter_nth_zero
for_kv_map
manual_next_back
redundant_pattern
This commit is contained in:
Matthias Krüger 2023-07-23 12:08:42 +02:00
parent 8771282d4e
commit ed4c5fef72
6 changed files with 15 additions and 12 deletions

View file

@ -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.