mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08:00
Merge pull request #212 from meilisearch/fix-documents-ids-iter
Fix the DocumentsIdsIter and do not iter on an Option
This commit is contained in:
commit
4b130fa2e5
@ -144,7 +144,7 @@ impl<'r> Iterator for DocumentsIdsIter<'r> {
|
|||||||
type Item = Result<DocumentId, rkv::StoreError>;
|
type Item = Result<DocumentId, rkv::StoreError>;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
for result in self.iter.next() {
|
for result in &mut self.iter {
|
||||||
match result {
|
match result {
|
||||||
Ok((key, _)) => {
|
Ok((key, _)) => {
|
||||||
let array = TryFrom::try_from(key).unwrap();
|
let array = TryFrom::try_from(key).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user