fix: lint clippy sort_by -> sort_by_key
Some checks are pending
CI / Check, test, lint (push) Waiting to run

This commit is contained in:
2026-05-20 11:22:04 +02:00
parent 9bf111b417
commit b16a0ff702

View File

@@ -86,7 +86,7 @@ pub fn list() -> Result<Vec<Job>> {
}
}
jobs.sort_by(|a, b| b.started_at.cmp(&a.started_at));
jobs.sort_by_key(|b| std::cmp::Reverse(b.started_at));
Ok(jobs)
}