chore: fix clippy lints to green the lint CI

- import.rs / promotion.rs: sort_by(|a,b| b.k.cmp(&a.k)) -> sort_by_key(Reverse(k))
- pipeline.rs: skip_while(!p).next() -> find(p)
Behaviour-preserving; completes the CI fix started by the cargo fmt commit.
This commit is contained in:
infosave2007
2026-07-08 20:09:54 +03:00
parent b4f78bd192
commit 30378f7b6a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ impl JobStore {
}
pub fn list(&self) -> Vec<Job> {
let mut v: Vec<Job> = self.jobs.lock().unwrap().values().cloned().collect();
v.sort_by(|a, b| b.started.cmp(&a.started));
v.sort_by_key(|x| std::cmp::Reverse(x.started));
v.truncate(20);
v
}