fix: lint clippy sort_by -> sort_by_key
Some checks are pending
CI / Check, test, lint (push) Waiting to run
Some checks are pending
CI / Check, test, lint (push) Waiting to run
This commit is contained in:
@@ -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)
|
Ok(jobs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user