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

Clippy update #116

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Clippy update #116

merged 4 commits into from
Oct 29, 2024

Conversation

qmonnet
Copy link
Owner

@qmonnet qmonnet commented Oct 29, 2024

  • src: Fix deprecated calls to 'feature = "cargo-clippy"'
  • src: Fix Clippy reports
  • ci: Add features to clippy pass
  • src: Remove presumably unused Clippy directives

Get rid of the deprecated attribute and simplify the lint indications.

Link: https://blog.rust-lang.org/2024/02/28/Clippy-deprecating-feature-cargo-clippy.html
Signed-off-by: Quentin Monnet <[email protected]>
Some of these reports were fixed automatically with:

    cargo +nightly clippy --fix --lib -p rbpf

Signed-off-by: Quentin Monnet <[email protected]>
Apply the linter for different combinations of features (and not only
combinations of toolchains).

Signed-off-by: Quentin Monnet <[email protected]>
"cargo clippy" seems to pass just fine without most of the Clippy
directives we have in the code. I believe some issues have been fixed
over time, some directives were unnecessarily added when copy-pasting
into a new file, and for the rest I'm not sure; likely, Clippy's
behaviour has changed somewhat over time.

Anyway, let's remove these if they are not necessary.

Signed-off-by: Quentin Monnet <[email protected]>
@qmonnet qmonnet merged commit b4079fe into main Oct 29, 2024
8 checks passed
@qmonnet qmonnet deleted the pr/clippy-update branch October 29, 2024 14:43
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.

1 participant