Skip to content

Fix unused method warning and run Clippy on cargo-hax in CI - #2352

Open
zac-scheiwe wants to merge 1 commit into
pereq-dev:mainfrom
zac-scheiwe:fix-2265-unused-iter
Open

zac-scheiwe wants to merge 1 commit into
pereq-dev:mainfrom
zac-scheiwe:fix-2265-unused-iter

Conversation

@zac-scheiwe

Copy link
Copy Markdown

Fixes #2265

  • ToolVersions::iter (cli/cargo-hax/src/tools/manifest.rs) is only used by tests, so gate it behind #[cfg(test)] instead of removing it.
  • Add a CI step in .github/workflows/clippy_rust_engine.yml running cargo clippy -p cargo-hax --no-deps --all-targets -- -D warnings.
  • Fix the existing Clippy lints in cargo-hax so that step passes (no behaviour change).

Fixes pereq-dev#2265

- `ToolVersions::iter` (cli/cargo-hax/src/tools/manifest.rs) is only used
  by tests, so gate it behind `#[cfg(test)]` instead of removing it.
- Add a CI step in .github/workflows/clippy_rust_engine.yml running
  `cargo clippy -p cargo-hax --no-deps --all-targets -- -D warnings`.
- Fix the existing Clippy lints in cargo-hax so that step passes
  (no behaviour change).
@maximebuyse
maximebuyse self-requested a review October 27, 2026 08:43

@maximebuyse maximebuyse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this! I added a suggested change to cover more in the clippy invocation added to the CI. With this addition the PR will be good to merge.

cargo clippy -p hax-rust-engine -- -D warnings --no-deps
- name: Run clippy on cargo-hax
run: |
cargo clippy -p cargo-hax --no-deps --all-targets -- -D warnings

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cargo clippy -p cargo-hax --no-deps --all-targets -- -D warnings
cargo clippy -p cargo-hax --no-deps --all-targets --all-features -- -D warnings

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning for unused method

2 participants