Skip to content

Commit dbc3abc

Browse files
committed
fix clippy
1 parent b61d906 commit dbc3abc

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

benches/common.rs

+7-21
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ pub fn short<M: Metric>(
150150
metric: M,
151151
suffix: Option<&str>,
152152
mut group: BenchmarkGroup<WallTime>,
153-
) where
154-
M: Metric,
155-
{
153+
) {
156154
for_all_cases_and_ranges(metric, "short", suffix, |metric, id, ranges| {
157155
let query = "paradise";
158156
let candidates = core::iter::once("paradisematic");
@@ -165,9 +163,7 @@ pub fn medium_start<M: Metric>(
165163
metric: M,
166164
suffix: Option<&str>,
167165
mut group: BenchmarkGroup<WallTime>,
168-
) where
169-
M: Metric,
170-
{
166+
) {
171167
for_all_cases_and_ranges(
172168
metric,
173169
"medium_start",
@@ -185,9 +181,7 @@ pub fn medium_middle<M: Metric>(
185181
metric: M,
186182
suffix: Option<&str>,
187183
mut group: BenchmarkGroup<WallTime>,
188-
) where
189-
M: Metric,
190-
{
184+
) {
191185
for_all_cases_and_ranges(
192186
metric,
193187
"medium_middle",
@@ -205,9 +199,7 @@ pub fn medium_end<M: Metric>(
205199
metric: M,
206200
suffix: Option<&str>,
207201
mut group: BenchmarkGroup<WallTime>,
208-
) where
209-
M: Metric,
210-
{
202+
) {
211203
for_all_cases_and_ranges(
212204
metric,
213205
"medium_end",
@@ -225,9 +217,7 @@ pub fn long_start<M: Metric>(
225217
metric: M,
226218
suffix: Option<&str>,
227219
mut group: BenchmarkGroup<WallTime>,
228-
) where
229-
M: Metric,
230-
{
220+
) {
231221
for_all_cases_and_ranges(
232222
metric,
233223
"long_start",
@@ -245,9 +235,7 @@ pub fn long_middle<M: Metric>(
245235
metric: M,
246236
suffix: Option<&str>,
247237
mut group: BenchmarkGroup<WallTime>,
248-
) where
249-
M: Metric,
250-
{
238+
) {
251239
for_all_cases_and_ranges(
252240
metric,
253241
"long_middle",
@@ -265,9 +253,7 @@ pub fn long_end<M: Metric>(
265253
metric: M,
266254
suffix: Option<&str>,
267255
mut group: BenchmarkGroup<WallTime>,
268-
) where
269-
M: Metric,
270-
{
256+
) {
271257
for_all_cases_and_ranges(
272258
metric,
273259
"long_end",

src/metrics/fzf/distance.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use core::cmp::{Ord, PartialOrd};
2-
31
pub(super) type Score = i64;
42

53
/// The fzf distance type.

0 commit comments

Comments
 (0)