rust-clippy
https://github.com/rust-lang-nursery/rust-clippy
Rust
A bunch of lints to catch common mistakes and improve your Rust code
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Rust not yet supported21 Subscribers
Add a CodeTriage badge to rust-clippy
Help out
- Issues
- Lint on use of `.into()` from `T` to `Option<T>`
- `float_cmp` changes
- Expect `lints.workspace = true` for crates in a workspace with a `[workspace.lints]` section
- `needless_borrow` suggestion causes error when using conditional compilation
- unnecessary_cast: suggestion do not include turbofish on `std::ptr::null{_mut}`
- More granular `missing_docs`-like lints
- Do not flag for exact floating-point numbers
- Lint match statement matching #[non_exhaustive] enum
- `unnecessary_cast` can silently change behavior of numeric code
- suggest using `if let Some(x) = arr.first()` over `if !arr.is_empty() then arr[0]`
- Docs
- Rust not yet supported