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 suggestion: `assume_init_mut` passed to `drop_in_place`
- `comparison_to_empty` not triggered if comparing `Cow<'a, str>` to empty string slice
- excessive_precision should not lint when it's so excessive as to be clearly intentional
- `struct_field_names` triggers when the field name *is* the struct name
- `manual_memcpy` lints against slices but not pointer arythmetics
- New lint: `manual_slice_fill`
- add a new lint for `repeat().take()` that can be replaced with `repeat_n()`
- don't suggest to use `cloned` for `Cow` in `unnecessary_to_owned`
- `cargo clippy --fix` for clippy::manual_retain results in broken code
- Suggest `uN::midpoint` over overflow prone `(a + b) / 2` expressions
- Docs
- Rust not yet supported