Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpeach committed Nov 19, 2024
1 parent 4e97ab0 commit 8da486b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/similar_filename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ impl SimilarFilename {
};
let matcher = SkimMatcherV2::default();
let mut matches: Vec<SimilarFilename> = Vec::new();
for (i, (ngram, filepath)) in file_ngrams.clone().iter().enumerate() {
for (other_ngram, other_filepath) in file_ngrams.iter() {
for (ngram, filepath) in file_ngrams {
for (other_ngram, other_filepath) in file_ngrams {
if ngram.nb_words() != other_ngram.nb_words() {
continue;
}
Expand Down

0 comments on commit 8da486b

Please sign in to comment.