From 2004525d461b0d6250b93e35ef238180046bcad9 Mon Sep 17 00:00:00 2001 From: alexanderdickie <75994927+AlexanderDickie@users.noreply.github.com> Date: Mon, 21 Aug 2023 22:01:27 +0100 Subject: [PATCH] run cargo clippy --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index aabfdf193689..442b6839d22f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1549,7 +1549,7 @@ pub fn scroll(cx: &mut Context, offset: usize, direction: Direction, sync_cursor doc_text, range, direction, - offset.abs() as usize, + offset.unsigned_abs(), movement, &text_fmt, &mut annotations,