cargo fmt

This commit is contained in:
barrotsteindev
2020-12-10 14:10:55 +02:00
parent 0aaa929d6e
commit e7b4a12bba
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,6 @@ Tantivy 0.14.0
This version breaks compatibility and requires users to reindex everything.
Tantivy 0.13.2
===================
Bugfix. Acquiring a facet reader on a segment that does not contain any

View File

@@ -55,7 +55,8 @@ pub fn test_filter_collector() {
assert_eq!(top_docs.len(), 1);
assert_eq!(top_docs[0].1, DocAddress(0, 1));
let filter_all_collector: FilterCollector<_, _, u64> = FilterCollector::new(price, &|value| value < 5u64, TopDocs::with_limit(2));
let filter_all_collector: FilterCollector<_, _, u64> =
FilterCollector::new(price, &|value| value < 5u64, TopDocs::with_limit(2));
let filtered_top_docs = searcher.search(&query, &filter_all_collector).unwrap();
assert_eq!(filtered_top_docs.len(), 0);