-
Notifications
You must be signed in to change notification settings - Fork 203
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 all clippy lints #714
Fix all clippy lints #714
Conversation
I like the idea of requiring a clean Clippy pass in CI - it seems like overall there's less headache in preventing the warnings at the outset, vs everyone ignoring them in later development |
Sounds good. That doesn't mean we should blindly follow clippy's advice all the time; |
Also deny clippy warnings in CI
Showing my ignorance here: does clippy also build the code? Just wondering if there might be some kinds of issue that would pass |
@ianrrees you're right, it doesn't build the code - sometimes things like linker errors will pop up when building but not checking. However, since we do build the BSP examples, I'm fairly confident these issues would be caught by CI regardless. |
Yep, that makes a lot of sense to me! Any issues that "escaped" would be good to cover with additional examples - sortof a build time regression test suite. |
Summary
Fix all HAL clippy lints.
Also up for debate: I've switched the CI build step to clippy, and having it deny all clippy warnings. However some might think that it is too aggressive.
Closes #574.
Checklist
CHANGELOG.md
for the BSP or HAL updated