Fix PR comments

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Many
2021-04-26 11:30:42 +02:00
committed by many
parent 0d7d3ce802
commit 0daa0e170a
4 changed files with 12 additions and 9 deletions

View File

@ -123,7 +123,15 @@ impl<'c> Context<'c> for CriteriaBuilder<'c> {
Ok(words_positions)
}
fn word_position_iterator(&self, word: &str, level: TreeLevel, in_prefix_cache: bool, left: Option<u32>, right: Option<u32>) -> heed::Result<Box<dyn Iterator<Item =heed::Result<((&'c str, TreeLevel, u32, u32), RoaringBitmap)>> + 'c>> {
fn word_position_iterator(
&self,
word: &str,
level: TreeLevel,
in_prefix_cache: bool,
left: Option<u32>,
right: Option<u32>
) -> heed::Result<Box<dyn Iterator<Item =heed::Result<((&'c str, TreeLevel, u32, u32), RoaringBitmap)>> + 'c>>
{
let range = {
let left = left.unwrap_or(u32::min_value());
let right = right.unwrap_or(u32::max_value());