Skip to content

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 <qmo@qmon.net>
Some of these reports were fixed automatically with:

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

Signed-off-by: Quentin Monnet <qmo@qmon.net>
Apply the linter for different combinations of features (and not only
combinations of toolchains).

Signed-off-by: Quentin Monnet <qmo@qmon.net>
"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 <qmo@qmon.net>
@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