From 0a160cc16e76fa4d381973f5639bf73ac70b42f6 Mon Sep 17 00:00:00 2001 From: lyj Date: Fri, 5 Feb 2021 21:32:25 +0800 Subject: [PATCH] Update segment_postings.rs --- src/postings/segment_postings.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/postings/segment_postings.rs b/src/postings/segment_postings.rs index a2f2b911d..200e995a6 100644 --- a/src/postings/segment_postings.rs +++ b/src/postings/segment_postings.rs @@ -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(); {