Apply suggestions

This commit is contained in:
Kerollmops 2022-06-02 11:26:12 +02:00
parent df721b2e9e
commit dfce9ba468
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -138,12 +138,12 @@ async fn get_tasks(
// We +1 just to know if there is more after this "page" or not. // We +1 just to know if there is more after this "page" or not.
let limit = limit.saturating_add(1); let limit = limit.saturating_add(1);
let mut tasks_results = meilisearch let mut tasks_results: Vec<_> = meilisearch
.list_tasks(filters, Some(limit), from) .list_tasks(filters, Some(limit), from)
.await? .await?
.into_iter() .into_iter()
.map(TaskView::from) .map(TaskView::from)
.collect::<Vec<_>>(); .collect();
// If we were able to fetch the number +1 tasks we asked // If we were able to fetch the number +1 tasks we asked
// it means that there is more to come. // it means that there is more to come.