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 7c49510c46
commit 0f299b77e6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ impl Promotion {
)
})
.collect();
out.sort_by(|a, b| b.2.cmp(&a.2));
out.sort_by_key(|x| std::cmp::Reverse(x.2));
out
}