diff options
Diffstat (limited to 'support/texlab/crates/definition/src/tests.rs')
-rw-r--r-- | support/texlab/crates/definition/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/texlab/crates/definition/src/tests.rs b/support/texlab/crates/definition/src/tests.rs index 26f7c0dc3a..0b3f7fa7cc 100644 --- a/support/texlab/crates/definition/src/tests.rs +++ b/support/texlab/crates/definition/src/tests.rs @@ -11,7 +11,7 @@ fn check(input: &str) { .locations() .filter(|location| location.document == origin_document) .find(|location| location.range.contains_inclusive(offset)) - .map_or_else(|| TextRange::default(), |location| location.range); + .map_or_else(TextRange::default, |location| location.range); let mut expected = FxHashSet::default(); for document in &fixture.documents { |