chore: fix clippy lints for rope2, sum_tree, text2 and util

This commit is contained in:
Piotr Osiewicz 2024-01-01 23:50:14 +01:00
parent 219999cd8d
commit 4fa28b3de2
6 changed files with 10 additions and 12 deletions

View file

@ -2655,7 +2655,7 @@ impl LineEnding {
max_ix -= 1;
}
if let Some(ix) = text[..max_ix].find(&['\n']) {
if let Some(ix) = text[..max_ix].find(['\n']) {
if ix > 0 && text.as_bytes()[ix - 1] == b'\r' {
Self::Windows
} else {