diff --git a/benches/common.rs b/benches/common.rs index 035042b..3a6bb78 100644 --- a/benches/common.rs +++ b/benches/common.rs @@ -150,9 +150,7 @@ pub fn short( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges(metric, "short", suffix, |metric, id, ranges| { let query = "paradise"; let candidates = core::iter::once("paradisematic"); @@ -165,9 +163,7 @@ pub fn medium_start( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges( metric, "medium_start", @@ -185,9 +181,7 @@ pub fn medium_middle( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges( metric, "medium_middle", @@ -205,9 +199,7 @@ pub fn medium_end( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges( metric, "medium_end", @@ -225,9 +217,7 @@ pub fn long_start( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges( metric, "long_start", @@ -245,9 +235,7 @@ pub fn long_middle( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges( metric, "long_middle", @@ -265,9 +253,7 @@ pub fn long_end( metric: M, suffix: Option<&str>, mut group: BenchmarkGroup, -) where - M: Metric, -{ +) { for_all_cases_and_ranges( metric, "long_end", diff --git a/src/metrics/fzf/distance.rs b/src/metrics/fzf/distance.rs index 19badd8..69b30f6 100644 --- a/src/metrics/fzf/distance.rs +++ b/src/metrics/fzf/distance.rs @@ -1,5 +1,3 @@ -use core::cmp::{Ord, PartialOrd}; - pub(super) type Score = i64; /// The fzf distance type.