added description to README

This commit is contained in:
llogiq 2015-05-21 14:57:20 +02:00
parent 4292dc77a7
commit 5b1287f017
1 changed files with 1 additions and 0 deletions

View File

@ -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: