diff --git a/meilidb-core/src/store/documents_fields.rs b/meilidb-core/src/store/documents_fields.rs index b3f5915cc..e6acb87b6 100644 --- a/meilidb-core/src/store/documents_fields.rs +++ b/meilidb-core/src/store/documents_fields.rs @@ -144,7 +144,7 @@ impl<'r> Iterator for DocumentsIdsIter<'r> { type Item = Result; fn next(&mut self) -> Option { - for result in self.iter.next() { + for result in &mut self.iter { match result { Ok((key, _)) => { let array = TryFrom::try_from(key).unwrap();