mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
added description to README
This commit is contained in:
parent
4292dc77a7
commit
5b1287f017
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ Lints included in this crate:
|
|||
- `mut_mut`: Warns on `&mut &mut` which is either a copy'n'paste error, or shows a fundamental misunderstanding of references
|
||||
- `len_zero`: Warns on `_.len() == 0` and suggests using `_.is_empty()` (or similar comparisons with `>` or `!=`)
|
||||
- `len_without_is_empty`: Warns on traits or impls that have a `.len()` but no `.is_empty()` method
|
||||
- `cmp_owned`: Warns on creating owned instances for comparing with others, e.g. `x == "foo".to_string()`
|
||||
|
||||
To use, add the following lines to your Cargo.toml:
|
||||
|
||||
|
|
Loading…
Reference in a new issue