Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mladedav committed Mar 13, 2022
1 parent 942ab28 commit 47f830d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl GherkinEnv {
let line = line_offsets
.iter()
.position(|x| x > &offset)
.unwrap_or_else(|| line_offsets.len());
.unwrap_or(line_offsets.len());

let col = offset - line_offsets[line - 1] + 1;

Expand Down

0 comments on commit 47f830d

Please sign in to comment.