From 93252769af3096971fdef83c6ab02c122e7beb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Wed, 17 Aug 2022 12:41:22 +0200 Subject: [PATCH] Apply review suggestions --- milli/src/update/word_prefix_pair_proximity_docids.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/milli/src/update/word_prefix_pair_proximity_docids.rs b/milli/src/update/word_prefix_pair_proximity_docids.rs index cf5e19a5c..724858e4f 100644 --- a/milli/src/update/word_prefix_pair_proximity_docids.rs +++ b/milli/src/update/word_prefix_pair_proximity_docids.rs @@ -165,7 +165,7 @@ inputs described above, which come from different places: present in the newly added documents 2. `word_pairs_db`, which is the list of word pairs from the database. - This list includes all elements in `new_word_pairs`** since `new_word_pairs` + This list includes all elements in `new_word_pairs` since `new_word_pairs` was added to the database prior to calling the `WordPrefixPairProximityDocIds::execute` function. @@ -380,10 +380,10 @@ impl<'t, 'u, 'i> WordPrefixPairProximityDocids<'t, 'u, 'i> { /// 3. a closure to describe how to handle the new computed (word1, prefix, proximity) elements /// /// For more information about what this function does, read the module documentation. -fn execute_on_word_pairs_and_prefixes( - iter: &mut Iter, +fn execute_on_word_pairs_and_prefixes( + iter: &mut I, mut next_word_pair_proximity: impl for<'a> FnMut( - &'a mut Iter, + &'a mut I, ) -> Result< Option<((&'a [u8], &'a [u8], u8), &'a [u8])>, >,