Address MSRV clippy lint

This commit is contained in:
Johannes Altmanninger
2026-01-31 14:12:17 +11:00
parent 08a9f5e683
commit 24ee3afdae
2 changed files with 2 additions and 1 deletions

View File

@@ -131,6 +131,7 @@ pub fn lineno_for_offset(&self, offset: usize, cache: &mut SourceLineCache) -> u
cache.count = 0;
}
#[allow(clippy::comparison_chain)] // TODO(MSRV>=1.90) old clippy
if offset > cache.offset {
cache.count += count_newlines(&self.src[cache.offset..offset]);
} else if offset < cache.offset {

View File

@@ -925,7 +925,7 @@ fn do_move(&mut self, new_x: usize, new_y: usize) {
let y_steps =
isize::try_from(new_y).unwrap() - isize::try_from(self.actual.cursor.y).unwrap();
#[allow(clippy::comparison_chain)] // TODO(MSRV>=1.90) for old clippy
#[allow(clippy::comparison_chain)] // TODO(MSRV>=1.90) old clippy
let s = if y_steps < 0 {
Some(CursorUp)
} else if y_steps > 0 {