Skip to content

CI: rustfmt and the new clippy lint of Rust 1.100 - #2

Merged
maubreville merged 1 commit into
DeepMicroscopy:mainfrom
jonas-amme:ci-fmt-clippy
Nov 17, 2026
Merged

maubreville merged 1 commit into
DeepMicroscopy:mainfrom
jonas-amme:ci-fmt-clippy

Conversation

@jonas-amme

Copy link
Copy Markdown
Contributor

Summary

CI on main fails at its first step, and with it every PR, because the workflow installs the latest stable Rust (dtolnay/rust-toolchain@stable, now 1.100):

  • cargo fmt --all -- --check: 14 files were not formatted. This commit is the output of cargo fmt --all, with no other changes in those files.
  • cargo clippy --workspace --all-targets -- -D warnings: the new lint needless_nonzero_get (Rust 1.100) fails on crates/exact-wsi/src/repair.rs:45. u32 / NonZeroU32 divides directly, so div.get() becomes div. Same result, still no division by zero.

There are no behavior changes.

How it was tested

With Rust 1.100.0 (rustfmt 1.11.0, clippy 0.1.100), the three CI steps on this branch:

  • cargo fmt --all -- --check: clean
  • cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test --workspace: passes

🤖 Generated with Claude Code

…s by the NonZeroU32 directly (clippy needless_nonzero_get, new in Rust 1.100); no behavior changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maubreville
maubreville merged commit 60dfaee into DeepMicroscopy:main Nov 17, 2026
1 check passed
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.

2 participants