Skip to content

Commit 03b1d5a

Browse files
committed
fix(clippy): apply clippy suggestions
1 parent 8a67312 commit 03b1d5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/soar-operations/src/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn score_candidates(query: &str, candidates: &[(String, FuzzyCandidate)]) -> Vec
189189
}
190190
}
191191

192-
scored.sort_by(|a, b| b.0.cmp(&a.0));
192+
scored.sort_by_key(|s| std::cmp::Reverse(s.0));
193193
scored
194194
}
195195

0 commit comments

Comments
 (0)