The CI pipeline (.github/workflows/ci.yml) runs cargo clippy and cargo test but never runs cargo fmt --check. This means code formatting can drift across PRs without any automated gate.
- name: Run clippy (fail fast on errors)
run: cargo clippy --workspace --all-features -- -D errors
cargo fmt --check is absent.
rustfmt would resolve automaticallyAdd a formatting check step to the lint job in ci.yml:
- name: Check formatting
run: cargo fmt --all -- --check
This is a one-line addition that runs in seconds and prevents formatting drift entirely.