mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Make clippy happy
This commit is contained in:
parent
462b4c0080
commit
0dbf1a16ff
24 changed files with 68 additions and 89 deletions
|
@ -46,7 +46,7 @@ pub async fn multi_search_with_post(
|
|||
// Explicitly expect a `(ResponseError, usize)` for the error type rather than `ResponseError` only,
|
||||
// so that `?` doesn't work if it doesn't use `with_index`, ensuring that it is not forgotten in case of code
|
||||
// changes.
|
||||
let search_results: Result<_, (ResponseError, usize)> = (|| {
|
||||
let search_results: Result<_, (ResponseError, usize)> = {
|
||||
async {
|
||||
let mut search_results = Vec::with_capacity(queries.len());
|
||||
for (query_index, (index_uid, mut query)) in
|
||||
|
@ -88,7 +88,7 @@ pub async fn multi_search_with_post(
|
|||
}
|
||||
Ok(search_results)
|
||||
}
|
||||
})()
|
||||
}
|
||||
.await;
|
||||
|
||||
if search_results.is_ok() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue