Skip to content

Commit 2a62479

Browse files
committed
bootstrap: fix Clippy warning
1 parent e2d6de7 commit 2a62479

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bootstrap/src/utils/exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl CommandProfiler {
148148
})
149149
.collect();
150150

151-
entries.sort_by(|a, b| b.2.cmp(&a.2));
151+
entries.sort_by_key(|e| std::cmp::Reverse(e.2));
152152

153153
let total_bootstrap_duration = start_time.elapsed();
154154

0 commit comments

Comments
 (0)