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 supported22 Subscribers
Add a CodeTriage badge to rust-clippy
Help out
- Issues
- pre-commit hook not aborting on unfixable warnings
- Dead comparison lint
- Always true/always false comparison lint
- Suggest `Option::is_some_and(...)` for manual `matches!(x, Some(x) if ...)` implementations
- deref_addrof can suggest adding UB
- Vec![] to slice suggestion in simple cases
- `iter.map(...).any(identity)` into `iter.any(...)`
- Cargo clippy report warnings from macros when using quote_spanned
- Flag unnecessary visiblity attributes on nested functions
- `cast_possible_truncation` could check whether floating point values are manually truncated (round, floor, ceil...) prior to cast
- Docs
- Rust not yet supported