diff --git a/src/fastfield/multivalued/index.rs b/src/fastfield/multivalued/index.rs index e0faf749c..fb7cfb7f1 100644 --- a/src/fastfield/multivalued/index.rs +++ b/src/fastfield/multivalued/index.rs @@ -34,9 +34,9 @@ impl MultiValueIndex { /// have values, this function returns `start..end` /// such that `value_column.get(start_doc)` is the first value of /// `start_doc` (well, if there is one), and `value_column.get(end_doc - 1)` - /// is the last value of `end_doc`. + /// is the last value of `end_doc`. /// - /// The passed end range is allowed to be out of bounds, in which case + /// The passed end range is allowed to be out of bounds, in which case /// it will be clipped to make it valid. #[inline] pub(crate) fn docid_range_to_position_range(&self, range: Range) -> Range { diff --git a/src/fastfield/multivalued/reader.rs b/src/fastfield/multivalued/reader.rs index 259dacc9b..a4f9acbcc 100644 --- a/src/fastfield/multivalued/reader.rs +++ b/src/fastfield/multivalued/reader.rs @@ -179,7 +179,7 @@ impl MultiValuedU128FastFieldReader { } } -// TODO having something that looks like MultiColumn trait. +// TODO having something that looks like MultiColumn trait. // See discussion in #1679 impl Column for MultiValuedU128FastFieldReader { fn get_val(&self, _idx: u32) -> T { diff --git a/src/indexer/index_writer.rs b/src/indexer/index_writer.rs index 267f3c0f1..2b5298529 100644 --- a/src/indexer/index_writer.rs +++ b/src/indexer/index_writer.rs @@ -1839,7 +1839,7 @@ mod tests { .filter(|id| ip_exists(**id)) .flat_map(|id| vec![ip_from_id(*id), ip_from_id(*id)]) .collect(); - assert_eq!(num_ips, expected_multi_ips.len() as u64); + assert_eq!(num_ips, expected_multi_ips.len() as u32); expected_multi_ips.sort(); all_ips.sort(); diff --git a/src/query/range_query_ip_fastfield.rs b/src/query/range_query_ip_fastfield.rs index 94b982cd6..b542c1b7f 100644 --- a/src/query/range_query_ip_fastfield.rs +++ b/src/query/range_query_ip_fastfield.rs @@ -297,7 +297,7 @@ mod tests { use super::*; use crate::collector::Count; use crate::query::QueryParser; - use crate::schema::{Schema, FAST, STORED, STRING}; + use crate::schema::{IpAddrOptions, Schema, FAST, STORED, STRING}; use crate::Index; #[derive(Clone, Debug)]