Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Mar 10, 2024
1 parent b61d906 commit dbc3abc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
28 changes: 7 additions & 21 deletions benches/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ pub fn short<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(metric, "short", suffix, |metric, id, ranges| {
let query = "paradise";
let candidates = core::iter::once("paradisematic");
Expand All @@ -165,9 +163,7 @@ pub fn medium_start<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(
metric,
"medium_start",
Expand All @@ -185,9 +181,7 @@ pub fn medium_middle<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(
metric,
"medium_middle",
Expand All @@ -205,9 +199,7 @@ pub fn medium_end<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(
metric,
"medium_end",
Expand All @@ -225,9 +217,7 @@ pub fn long_start<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(
metric,
"long_start",
Expand All @@ -245,9 +235,7 @@ pub fn long_middle<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(
metric,
"long_middle",
Expand All @@ -265,9 +253,7 @@ pub fn long_end<M: Metric>(
metric: M,
suffix: Option<&str>,
mut group: BenchmarkGroup<WallTime>,
) where
M: Metric,
{
) {
for_all_cases_and_ranges(
metric,
"long_end",
Expand Down
2 changes: 0 additions & 2 deletions src/metrics/fzf/distance.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use core::cmp::{Ord, PartialOrd};

pub(super) type Score = i64;

/// The fzf distance type.
Expand Down

0 comments on commit dbc3abc

Please sign in to comment.