Skip to content

Commit

Permalink
Use Ord impl of TextWidth instead of converting to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaput committed Jan 9, 2025
1 parent 9ac17df commit 02b29c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cairo-lang-diagnostics/src/location_marks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn get_location_marks(
.start
.position_in_file(db, location.file_id)
.expect("Failed to find location in file.");
if span.end.as_u32() <= summary.last_offset.as_u32() {
if span.end <= summary.last_offset {
let TextPosition { line: last_line_idx, col: _ } = span
.end
.position_in_file(db, location.file_id)
Expand Down

0 comments on commit 02b29c6

Please sign in to comment.