Merge pull request #980 from lengyijun/patch-8

Update segment_postings.rs
This commit is contained in:
Paul Masurel
2021-02-05 22:52:29 +09:00
committed by GitHub

View File

@@ -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();
{