diff options
| author | xiongmao86 <xiongmao86dev@sina.com> | 2020-01-02 13:12:23 +0800 |
|---|---|---|
| committer | xiongmao86 <xiongmao86dev@sina.com> | 2020-01-12 19:54:17 +0800 |
| commit | 96334d0d7cc2901acc80a67ba454409dcd452a30 (patch) | |
| tree | e468bc42c6a745e7f98013efa2b25a7efb786241 /src | |
| parent | 3a788452e2d81273d9c3981e401019bf0f45d78d (diff) | |
| download | rust-96334d0d7cc2901acc80a67ba454409dcd452a30.tar.gz rust-96334d0d7cc2901acc80a67ba454409dcd452a30.zip | |
Declare lint.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lintlist/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index f576bb152de..5dd82b66b8e 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -561,6 +561,13 @@ pub const ALL_LINTS: [Lint; 346] = [ module: "fallible_impl_from", }, Lint { + name: "filetype_is_file", + group: "style", + desc: "`FileType::is_file` is not recommended to test for readable file type.", + deprecation: None, + module: "methods", + }, + Lint { name: "filter_map", group: "pedantic", desc: "using combinations of `filter`, `map`, `filter_map` and `flat_map` which can usually be written as a single method call", |
