diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2020-11-05 14:29:48 +0100 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2020-11-05 14:29:48 +0100 |
| commit | 34244190d45d80bf66a0eec0d04f0254efd4c754 (patch) | |
| tree | 74a0de1b64324dc57f315f8af4670b1a7fc087ca /src | |
| parent | 0c1531a5c4269b0d0bc7cff53420f936b42ce1ab (diff) | |
| download | rust-34244190d45d80bf66a0eec0d04f0254efd4c754.tar.gz rust-34244190d45d80bf66a0eec0d04f0254efd4c754.zip | |
Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup
Diffstat (limited to 'src')
| -rw-r--r-- | src/lintlist/mod.rs | 56 |
1 files changed, 49 insertions, 7 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index c2e63ecb581..702f9d86de6 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -299,6 +299,13 @@ vec![ module: "comparison_chain", }, Lint { + name: "comparison_to_empty", + group: "style", + desc: "checking `x == \"\"` or `x == []` (or similar) when `.is_empty()` could be used instead", + deprecation: None, + module: "len_zero", + }, + Lint { name: "copy_iterator", group: "pedantic", desc: "implementing `Iterator` on a `Copy` type", @@ -352,7 +359,7 @@ vec