Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 24, 2024
1 parent 830a610 commit 5f4524d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/src/modules/hook/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ fn get_offset(content: &str, location: Position) -> usize {
if i + 1 == location.line().expect("location should have a line number") {
offset += location
.position()
.expect("location should have a column number") - 1;
.expect("location should have a column number")
- 1;
break;
}
offset += line.len() + 1;
Expand Down

0 comments on commit 5f4524d

Please sign in to comment.