diff --git a/src/rank/criterion/exact.rs b/src/rank/criterion/exact.rs index 6d33a6f38..759bd951e 100644 --- a/src/rank/criterion/exact.rs +++ b/src/rank/criterion/exact.rs @@ -9,13 +9,13 @@ use crate::database::DatabaseView; use crate::Match; #[inline] -fn contains_exact(matches: &[Match]) -> bool { +fn contains_exact(matches: &&[Match]) -> bool { matches.iter().any(|m| m.is_exact) } #[inline] fn number_exact_matches(matches: &Matches) -> usize { - matches.query_index_groups().map(contains_exact).count() + matches.query_index_groups().filter(contains_exact).count() } #[derive(Debug, Clone, Copy)]