Skip to content

Fix Clippy CI warnings for 0.8.7 solver route builders#37

Merged
blackopsrepl merged 2 commits into
mainfrom
codex/fix-cargo-clippy-errors-on-ci
Apr 17, 2026
Merged

Fix Clippy CI warnings for 0.8.7 solver route builders#37
blackopsrepl merged 2 commits into
mainfrom
codex/fix-cargo-clippy-errors-on-ci

Conversation

@blackopsrepl
Copy link
Copy Markdown
Collaborator

Motivation

  • Remove Clippy lints reported on CI for the 0.8.7 solver crates by making small iterator and sort adjustments while preserving existing behavior.

Description

  • Removed unnecessary .into_iter() conversions in the list ruin reinsertion path (crates/solverforge-solver/src/heuristic/move/list_ruin.rs) and in Clarke–Wright route construction chaining/assignment paths (crates/solverforge-solver/src/manager/phase_factory/list_clarke_wright.rs).
  • Replaced savings.sort_unstable_by(|a, b| b.0.cmp(&a.0)) with savings.sort_unstable_by_key(|entry| std::cmp::Reverse(entry.0)) to satisfy the unnecessary_sort_by lint while keeping the same ordering.

Testing

  • Ran cargo clippy --workspace --all-targets --all-features, which completed successfully with the Clippy warnings resolved.

Codex Task

@blackopsrepl blackopsrepl merged commit 9462fc2 into main Apr 17, 2026
4 checks passed
@blackopsrepl blackopsrepl deleted the codex/fix-cargo-clippy-errors-on-ci branch April 18, 2026 14:50
blackopsrepl added a commit that referenced this pull request Apr 22, 2026
…-on-ci

Fix Clippy CI warnings for 0.8.7 solver route builders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant