From 5b1287f017beac4609486a24fb0cc8c02d63c8ed Mon Sep 17 00:00:00 2001 From: llogiq Date: Thu, 21 May 2015 14:57:20 +0200 Subject: [PATCH] added description to README --- README.md | 1 + 1 file changed, 1 insertion(+) 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: