rust-clippy
https://github.com/rust-lang/rust-clippy
Rust
A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
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
- suggest using `if let Some(x) = arr.first()` over `if !arr.is_empty() then arr[0]`
- Warn when `match` arm's guard clause has side-effects
- Question re `inconsistent_struct_constructor` requirement
- New lint suggestion: Lint against `Some(self)` in `Error::source`
- Replace `map_or(false, ...)` with `is_some_and` or `is_ok_and`
- `redundant_guards` on match guard of an expression rebinding
- `borrowed_box` warnings on functions that returns `U<&V>` where `V` happens to be `Box<T>`
- `shadow_unrelated` should permit `for` loops
- New lint suggestion: Avoid inherent methods on generic smart pointers
- `deny_lints`
- Docs
- Rust not yet supported