Skip to content

Commit 0ea3218

Browse files
committed
fix(clippy): allow unnecessary_sort_by in terraphim_cli service
1 parent 7ae6b9f commit 0ea3218

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/terraphim_cli/src/service.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ impl CliService {
329329

330330
// Get nodes and sort by rank (descending)
331331
let mut nodes: Vec<_> = rolegraph.nodes_map().iter().collect();
332+
#[allow(clippy::unnecessary_sort_by)]
332333
nodes.sort_by(|a, b| b.1.rank.cmp(&a.1.rank));
333334

334335
// Map node IDs to term names and collect top-k

0 commit comments

Comments
 (0)