Fix clippy

This commit is contained in:
Clémentine Urquizar 2021-06-23 11:23:57 +02:00
parent 00b0a00fc5
commit ec3140a29e
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A

View File

@ -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