Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed May 27, 2024
1 parent a706e3b commit bebd2b5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/fzf_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,19 +545,6 @@ mod utils {
use norm::fzf::{FzfDistance, FzfParser, FzfQuery, FzfV1, FzfV2};
use norm::{CaseSensitivity, Metric};

/// TODO: docs
pub trait SortedRanges {
fn sorted(&self) -> Vec<Range<usize>>;
}

impl SortedRanges for &[Range<usize>] {
fn sorted(&self) -> Vec<Range<usize>> {
let mut sorted = self.to_vec();
sorted.sort_by_key(|r| r.start);
sorted
}
}

pub trait Fzf:
Default
+ for<'a> Metric<Query<'a> = FzfQuery<'a>, Distance = FzfDistance>
Expand Down

0 comments on commit bebd2b5

Please sign in to comment.