diff --git a/src/bootstrap/src/utils/exec.rs b/src/bootstrap/src/utils/exec.rs index 61b8b26dceaf..b264c961b659 100644 --- a/src/bootstrap/src/utils/exec.rs +++ b/src/bootstrap/src/utils/exec.rs @@ -148,7 +148,7 @@ impl CommandProfiler { }) .collect(); - entries.sort_by(|a, b| b.2.cmp(&a.2)); + entries.sort_by_key(|e| std::cmp::Reverse(e.2)); let total_bootstrap_duration = start_time.elapsed();