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
- transmute_ptr_to_ref wrongly suggests to use `cast` when the destination type is a DST
- Suggest faster `.contains()` instead of `.iter().any()` for `[u8]` and `[i8]` slices
- Warn if the order of impl trait functions is not the same as in trait definition
- Add `result_as_ref_deref` lint
- Fix for "manual implementation of Option::map" fails to convert && to &
- await_holding_borrow - like await_holding_lock, but for RefCell
- `expect_unstable` lint for feature instability assertions
- Add [`manual_ilog2`] lint
- Replace `assert!(a==b)` with `assert_eq!(a,b)` as part of `bool_assert_comparison` lint
- Suggest `String::into_bytes()` to replace `as_bytes().to_owned()` when the `String` can be consumed
- Docs
- Rust not yet supported