Skip to content

Conversation

@tarcieri
Copy link
Member

Enables the following and fixes violations if any:

  • clippy::missing_panics_doc
  • clippy::must_use_candidate
  • clippy::ptr_as_ptr
  • clippy::ref_as_ptr
  • clippy::semicolon_if_nothing_returned

Enables the following and fixes violations if any:

- `clippy::missing_panics_doc`
- `clippy::must_use_candidate`
- `clippy::ptr_as_ptr`
- `clippy::ref_as_ptr`
- `clippy::semicolon_if_nothing_returned`
@tarcieri tarcieri merged commit 23642ea into master Jan 18, 2026
14 checks passed
@tarcieri tarcieri deleted the improve-clippy-lints branch January 18, 2026 00:59
@newpavlov
Copy link
Member

It may be worth to move the list of lints into Cargo.toml, see: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-lints-section

@tarcieri
Copy link
Member Author

Yup, been meaning to do that, but wanted to compile a standard list of lints we can hopefully apply everywhere: RustCrypto/meta#24

This is just the result of briefly enabling clippy::pedantic and seeing what popped up.

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.

3 participants