From 9dca18f96697e25f62d780c335d6cb76791c3bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Thu, 10 Oct 2019 18:32:22 +0200 Subject: [PATCH] Fix the DocumentsIdsIter and do not iter on an Option --- meilidb-core/src/store/documents_fields.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();