From 47f830d46620a14dbf8cda038e883762f6f96fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Sun, 13 Mar 2022 03:02:08 +0100 Subject: [PATCH] clippy --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 2087bfd..fcae71d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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;