diff --git a/crates/milli/src/update/new/indexer/document_operation.rs b/crates/milli/src/update/new/indexer/document_operation.rs index c0f1ffbdd..3be6cc080 100644 --- a/crates/milli/src/update/new/indexer/document_operation.rs +++ b/crates/milli/src/update/new/indexer/document_operation.rs @@ -2,6 +2,7 @@ use bumpalo::collections::CollectIn; use bumpalo::Bump; use heed::RoTxn; use memmap2::Mmap; +use rayon::prelude::IndexedParallelIterator; use rayon::slice::ParallelSlice; use serde_json::value::RawValue; use IndexDocumentsMethod as Idm; @@ -80,8 +81,7 @@ impl<'pl> DocumentOperation<'pl> { let documents_ids = index.documents_ids(rtxn)?; let mut available_docids = AvailableIds::new(&documents_ids); - let mut docids_version_offsets = - hashbrown::HashMap::<&'pl str, _, _, _>::new_in(&document_changes_alloc); + let mut docids_version_offsets = hashbrown::HashMap::<&'pl str, _, _, _>::new(); for operation in self.operations { match operation { @@ -213,7 +213,7 @@ impl<'pl> DocumentChanges<'pl> for DocumentOperationChanges<'pl> { fn iter( &self, chunk_size: usize, - ) -> impl rayon::prelude::IndexedParallelIterator> { + ) -> impl IndexedParallelIterator> { self.docids_version_offsets.par_chunks(chunk_size) }