Skip to content

Commit

Permalink
Update segment_postings.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Feb 5, 2021
1 parent f099f97 commit 0a160cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/postings/segment_postings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl SegmentPostings {
/// It serializes the doc ids using tantivy's codec
/// and returns a `SegmentPostings` object that embeds a
/// buffer with the serialized data.
#[cfg(test)]
pub fn create_from_docs(docs: &[u32]) -> SegmentPostings {
let mut buffer = Vec::new();
{
Expand Down

0 comments on commit 0a160cc

Please sign in to comment.