diff options
| author | Eduardo Broto <ebroto@tutanota.com> | 2020-10-31 09:33:40 +0100 |
|---|---|---|
| committer | Eduardo Broto <ebroto@tutanota.com> | 2020-10-31 09:33:40 +0100 |
| commit | 9d73371663ec67558700b43a55d606caa71a7f71 (patch) | |
| tree | be08801aa67ac6c18a669003823d285e0933ad83 /src | |
| parent | 1c8c3d14ef6f9ab297103c526ba4b6023822aa87 (diff) | |
| parent | 084b203988e04bcf89d3b2d6bbc77b65ecfab553 (diff) | |
| download | rust-9d73371663ec67558700b43a55d606caa71a7f71.tar.gz rust-9d73371663ec67558700b43a55d606caa71a7f71.zip | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'src')
| -rw-r--r-- | src/lintlist/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index c2e63ecb581..016bda77ef5 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", @@ -1223,6 +1230,13 @@ vec