Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable all Clippy warnings in Cargo.toml. #299

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Conversation

SamirTalwar
Copy link
Contributor

What

Enabling the warnings in Cargo.toml means tooling (e.g. cargo clippy and rust-analyzer) will share the same list of warnings.

How

Rust v1.74 added support for a [lints] section in Cargo.toml files.

I have also added --deny=clippy::all to the Justfile so it fails if there are any warnings, just like CI does. This won't scale if we add more warnings though; not sure how to fix that yet.

This means we can just enable them in one place.

I have also added `--deny=clippy::all` to the Justfile so it fails if
there are any warnings, just like CI does.
@SamirTalwar SamirTalwar added this pull request to the merge queue Feb 16, 2024
Merged via the queue into main with commit 9373d4d Feb 16, 2024
28 checks passed
@SamirTalwar SamirTalwar deleted the samirtalwar/clippy-all branch February 16, 2024 09:03
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