Skip to content

Commit 22a4db0

Browse files
committed
fix clippy warning
1 parent d587e45 commit 22a4db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/report/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub fn generate_report<DB: ReadResults>(
220220
let mut crates = crates.to_vec();
221221
let index = Index::new(WORK_DIR.join("crates.io-index"));
222222
//crate ids are unique so unstable sort is equivalent to stable sort but is generally faster
223-
crates.sort_unstable_by(|a, b| a.id().cmp(&b.id()));
223+
crates.sort_unstable_by_key(|a| a.id());
224224
let res = crates
225225
.iter()
226226
.map(|krate| {

0 commit comments

Comments
 (0)