From f6f8f543e105dbbc865f3a269c0ab12a3d8e7c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Tue, 19 Jul 2022 07:08:36 +0200 Subject: [PATCH] Run cargo fmt --- milli/src/heed_codec/mod.rs | 3 +-- .../word_prefix_pair_proximity_docids.rs | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) 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;