mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Try removing needless collect
This commit is contained in:
parent
5deea631ea
commit
dff2715ef3
1 changed files with 0 additions and 1 deletions
|
@ -101,7 +101,6 @@ pub async fn list_indexes(
|
|||
})?;
|
||||
// Won't cause to open all indexes because IndexView doesn't keep the `Index` opened.
|
||||
// error when trying to fix it: the trait `ExactSizeIterator` is not implemented for `Flatten<IntoIter<Option<IndexView>>>`
|
||||
#[allow(clippy::needless_collect)]
|
||||
let indexes: Vec<IndexView> = indexes.into_iter().flatten().collect();
|
||||
let ret = paginate.as_pagination().auto_paginate_sized(indexes.into_iter());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue