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
- Fix duplicate diagnostics for `min_rust_version_invalid_attr`
- `missing_asserts_for_indexing` ignores `match` for length
- Since 1.97.0, `clippy::question_mark` fires on code matching on `&Option`
- Lint suggestion: implement `ExactSizeIterator` when `size_hint()` delegates to something implementing `ExactSizeIterator`
- `indexing_slicing` ignores `match` for length
- New lint: `iter_missing_exact_size`
- Since 1.97 Clippy flags else return { None } under question_mark, even in longer chains
- `clippy::unwrap-or-default` ignores MSRV
- For `RefCell<T> where T: Copy` suggest `Cell<T>` instead
- `ref_binding_to_reference` advises to return a reference that doesn't live long enough
- Docs
- Rust not yet supported