-
Notifications
You must be signed in to change notification settings - Fork 102
Fix clippy warnings #1233
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
Fix clippy warnings #1233
Conversation
with: | ||
components: clippy | ||
- name: Run clippy | ||
run: cargo clippy --all-targets --features ${{ matrix.features }} -- -D warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this explain what the user needs to do to pass or just fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The clippy messages are pretty helpful, so I think the answer is yes
I don't know why but I get a lot more clippy failures locally using the same command. It makes fixing this a bit annoying. Any idea why? Is the version not constrained enough? |
Do you have an example? It might just be a different toolchain than juliaup/.github/workflows/clippy.yml Line 33 in 4d981b4
Or maybe you are enabling the windows features (or |
On macOS on #1237 which is currently passing clippy CI
|
Actually maybe your rust toolchain is newer? The message "error: variables can be used directly in the I'm on stable |
Oh wait I have that lint too. But it's not enabled by default, I have to explicitly turn it on. Do you have a clippy config or something that enables the stricter ones? |
This also adds a new CI workflow that fails upon new clippy warnings