Skip to content

Commit

Permalink
Removing unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Feb 5, 2021
1 parent 945bcc5 commit 7847177
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/postings/segment_postings.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
use crate::common::HasLen;
use crate::directory::FileSlice;
use crate::docset::DocSet;
use crate::fastfield::DeleteBitSet;
use crate::positions::PositionReader;
use crate::postings::compression::COMPRESSION_BLOCK_SIZE;
use crate::postings::serializer::PostingsSerializer;
use crate::postings::BlockSearcher;
use crate::postings::BlockSegmentPostings;
use crate::postings::Postings;
use crate::schema::IndexRecordOption;
use crate::{DocId, TERMINATED};

/// `SegmentPostings` represents the inverted list or postings associated to
Expand Down Expand Up @@ -70,6 +67,9 @@ impl SegmentPostings {
/// buffer with the serialized data.
#[cfg(test)]
pub fn create_from_docs(docs: &[u32]) -> SegmentPostings {
use crate::directory::FileSlice;
use crate::postings::serializer::PostingsSerializer;
use crate::schema::IndexRecordOption;
let mut buffer = Vec::new();
{
let mut postings_serializer =
Expand Down Expand Up @@ -98,6 +98,9 @@ impl SegmentPostings {
doc_and_tfs: &[(u32, u32)],
fieldnorms: Option<&[u32]>,
) -> SegmentPostings {
use crate::directory::FileSlice;
use crate::postings::serializer::PostingsSerializer;
use crate::schema::IndexRecordOption;
use crate::fieldnorm::FieldNormReader;
use crate::Score;
let mut buffer: Vec<u8> = Vec::new();
Expand Down

0 comments on commit 7847177

Please sign in to comment.