remove useless lifetime on Distinct Trait

This commit is contained in:
Marin Postma
2021-06-01 14:43:48 +02:00
committed by Kerollmops
parent 187c713de5
commit 1e366dae3e
4 changed files with 8 additions and 7 deletions

View File

@ -147,12 +147,13 @@ impl<'a> Search<'a> {
}
}
fn perform_sort(
fn perform_sort<D: Distinct>(
&self,
mut distinct: impl for<'c> Distinct<'c>,
mut distinct: D,
matching_words: MatchingWords,
mut criteria: Final,
) -> anyhow::Result<SearchResult> {
) -> anyhow::Result<SearchResult>
{
let mut offset = self.offset;
let mut initial_candidates = RoaringBitmap::new();
let mut excluded_candidates = RoaringBitmap::new();