mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
Fix the DocumentsIdsIter and do not iter on an Option
This commit is contained in:
parent
543b65b09b
commit
9dca18f966
@ -144,7 +144,7 @@ impl<'r> Iterator for DocumentsIdsIter<'r> {
|
||||
type Item = Result<DocumentId, rkv::StoreError>;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
for result in self.iter.next() {
|
||||
for result in &mut self.iter {
|
||||
match result {
|
||||
Ok((key, _)) => {
|
||||
let array = TryFrom::try_from(key).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user