mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-23 19:50:42 +00:00
Stupid implementaiton of Box<Scorer>::collect
This commit is contained in:
@@ -31,9 +31,7 @@ impl<'a> Scorer for Box<Scorer + 'a> {
|
||||
|
||||
fn collect(&mut self, collector: &mut Collector) {
|
||||
let scorer = self.deref_mut();
|
||||
while scorer.advance() {
|
||||
collector.collect(scorer.doc(), scorer.score());
|
||||
}
|
||||
scorer.collect(collector);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user