diff --git a/README.md b/README.md index 5a5369fc9c1..0bea2fad1d6 100644 --- a/README.md +++ b/README.md @@ -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: