You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): resolve clippy errors and improve lint configuration
Two main issues were fixed:
1. Toolchain mismatch: When multiple Rust toolchains are installed in the same
job, the last one becomes default. Fixed by explicitly using +stable for
clippy and doc commands to match the existing +nightly for rustfmt.
2. Clippy lint configuration: RUSTFLAGS="-D warnings" was overriding workspace
lint allows. Changed approach to use workspace lints with "deny" level
instead of command-line -D warnings, allowing proper prioritization of allows.
Changes:
- CI workflow: Added +stable prefix to clippy/doc, removed -D warnings
- Cargo.toml: Changed clippy lints to "deny" level, added priority allows for
overly strict lints (multiple_crate_versions, cargo_common_metadata)
- Code fixes: Removed 11 instances of needless borrows (needless_borrows_for_generic_args)
All clippy checks now pass with proper workspace lint inheritance.
0 commit comments