From 50763aac82365a8bddc635c8599f34c28a98140f Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 19 May 2022 11:23:22 +0200 Subject: [PATCH] Fix clippy --- meilisearch-lib/src/index/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-lib/src/index/search.rs b/meilisearch-lib/src/index/search.rs index 327cf173a..bf543b377 100644 --- a/meilisearch-lib/src/index/search.rs +++ b/meilisearch-lib/src/index/search.rs @@ -446,7 +446,7 @@ fn format_fields<'a, A: AsRef<[u8]>>( compute_matches: bool, displayable_ids: &BTreeSet, ) -> Result<(Option, Document)> { - let mut matches = compute_matches.then(|| BTreeMap::new()); + let mut matches = compute_matches.then(BTreeMap::new); let mut document = document.clone(); // select the attributes to retrieve