From ec3140a29e3eb9fbde79a84fc19d1092edf46518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Wed, 23 Jun 2021 11:23:57 +0200 Subject: [PATCH] Fix clippy --- meilisearch-http/src/index/search.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meilisearch-http/src/index/search.rs b/meilisearch-http/src/index/search.rs index d4510a115..a1dc2ee55 100644 --- a/meilisearch-http/src/index/search.rs +++ b/meilisearch-http/src/index/search.rs @@ -213,10 +213,7 @@ impl Index { None => None, }; - let exhaustive_facets_count = match facets_distribution { - Some(_) => Some(false), // not implemented yet - None => None - }; + let exhaustive_facets_count = facets_distribution.as_ref().map(|_| false); // not implemented yet let result = SearchResult { exhaustive_nb_hits: false, // not implemented yet