Marked blockwand test as ignored.

- Using impl trait for iterating `matching_segments` in the termdict
merger
This commit is contained in:
Paul Masurel
2020-11-16 13:42:46 +09:00
parent 650eca271f
commit 6d4b982417
2 changed files with 5 additions and 6 deletions

View File

@@ -531,6 +531,7 @@ mod tests {
proptest! {
#![proptest_config(ProptestConfig::with_cases(500))]
#[ignore]
#[test]
fn test_block_wand_three_term_scorers((posting_lists, fieldnorms) in gen_term_scorers(3)) {
test_block_wand_aux(&posting_lists[..], &fieldnorms[..]);

View File

@@ -60,12 +60,10 @@ impl<'a> TermMerger<'a> {
pub(crate) fn matching_segments<'b: 'a>(
&'b self,
) -> Box<dyn 'b + Iterator<Item = (usize, TermOrdinal)>> {
Box::new(
self.current_streamers
.iter()
.map(|heap_item| (heap_item.segment_ord, heap_item.streamer.term_ord())),
)
) -> impl 'b + Iterator<Item = (usize, TermOrdinal)> {
self.current_streamers
.iter()
.map(|heap_item| (heap_item.segment_ord, heap_item.streamer.term_ord()))
}
fn advance_segments(&mut self) {