Update segment_postings.rs

This commit is contained in:
lyj
2021-02-05 21:32:25 +08:00
committed by GitHub
parent f099f97daa
commit 0a160cc16e

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