From 245c51f8115ad5960d4ddf7934b8e6b9181e8ffb Mon Sep 17 00:00:00 2001 From: DavidLee18 Date: Thu, 31 Oct 2024 13:27:23 +0900 Subject: [PATCH] more proper linting..? --- src/norminette_msg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/norminette_msg.rs b/src/norminette_msg.rs index 20a93ef..f454ac9 100644 --- a/src/norminette_msg.rs +++ b/src/norminette_msg.rs @@ -17,8 +17,8 @@ impl NorminetteMsg { pub fn find_range(&self) -> Option { match self { NorminetteMsg::Error { line, column, .. } => Some(Range { - start: Position::new((line - 1) as u32, *column as u32), - end: Position::new(*line as u32, (column + 1) as u32), + start: Position::new(*line as u32, *column as u32), + end: Position::new(*line as u32, (column + 3) as u32), }), NorminetteMsg::Ok => None, }