diff --git a/milli/src/heed_codec/mod.rs b/milli/src/heed_codec/mod.rs index 02235f26d..f3691b7d8 100644 --- a/milli/src/heed_codec/mod.rs +++ b/milli/src/heed_codec/mod.rs @@ -15,5 +15,4 @@ pub use self::roaring_bitmap_length::{ BoRoaringBitmapLenCodec, CboRoaringBitmapLenCodec, RoaringBitmapLenCodec, }; pub use self::str_beu32_codec::StrBEU32Codec; -pub use self::str_str_u8_codec::StrStrU8Codec; -pub use self::str_str_u8_codec::UncheckedStrStrU8Codec; +pub use self::str_str_u8_codec::{StrStrU8Codec, UncheckedStrStrU8Codec}; diff --git a/milli/src/update/word_prefix_pair_proximity_docids.rs b/milli/src/update/word_prefix_pair_proximity_docids.rs index 0426edef9..07908efb5 100644 --- a/milli/src/update/word_prefix_pair_proximity_docids.rs +++ b/milli/src/update/word_prefix_pair_proximity_docids.rs @@ -192,17 +192,19 @@ the grenad and insert its elements in the database. */ -use crate::update::index_documents::{ - create_writer, merge_cbo_roaring_bitmaps, CursorClonableMmap, -}; -use crate::{CboRoaringBitmapCodec, Index, Result, UncheckedStrStrU8Codec}; +use std::borrow::Cow; +use std::collections::HashSet; +use std::io::BufReader; + use grenad::CompressionType; use heed::types::ByteSlice; use heed::BytesDecode; use log::debug; -use std::borrow::Cow; -use std::collections::HashSet; -use std::io::BufReader; + +use crate::update::index_documents::{ + create_writer, merge_cbo_roaring_bitmaps, CursorClonableMmap, +}; +use crate::{CboRoaringBitmapCodec, Index, Result, UncheckedStrStrU8Codec}; pub struct WordPrefixPairProximityDocids<'t, 'u, 'i> { wtxn: &'t mut heed::RwTxn<'i, 'u>, @@ -737,9 +739,8 @@ impl PrefixTrieNode { mod tests { use roaring::RoaringBitmap; - use crate::{CboRoaringBitmapCodec, StrStrU8Codec}; - use super::*; + use crate::{CboRoaringBitmapCodec, StrStrU8Codec}; use std::io::Cursor;