From 24ee3afdae007ae138fc17236c17eba0af6b6ab2 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 31 Jan 2026 14:12:17 +1100 Subject: [PATCH] Address MSRV clippy lint --- src/parse_tree.rs | 1 + src/screen.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse_tree.rs b/src/parse_tree.rs index 7318a03ad..23bad58cc 100644 --- a/src/parse_tree.rs +++ b/src/parse_tree.rs @@ -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 { diff --git a/src/screen.rs b/src/screen.rs index d37239bbd..4676887db 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -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 {