chore: fix clippy lints for rope2, sum_tree, text2 and util
This commit is contained in:
parent
219999cd8d
commit
4fa28b3de2
6 changed files with 10 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue