mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 12:51:15 -03:00
Address MSRV clippy lint
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user