From d94df72106e04cdae3fdc34026ef1eee6f800ba7 Mon Sep 17 00:00:00 2001 From: xiongmao86 Date: Wed, 8 Jan 2020 16:56:28 +0800 Subject: [PATCH] Update lints again. --- README.md | 2 +- clippy_lints/src/methods/mod.rs | 2 +- src/lintlist/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c46d3e16bb17..4de256e9e72f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A collection of lints to catch common mistakes and improve your [Rust](/~https://github.com/rust-lang/rust) code. -[There are 345 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) +[There are 346 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you: diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index a041766f5fb7..a988949e6f0a 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -3271,7 +3271,7 @@ fn lint_filetype_is_file(cx: &LateContext<'_, '_>, expr: &hir::Expr<'_>, args: & if_chain! { if let Some(parent) = get_parent_expr(cx, expr); if let hir::ExprKind::Unary(op, _) = parent.kind; - if op == hir::UnNot; + if op == hir::UnOp::UnNot; then { lint_unary = "!"; verb = "denies"; diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index 638c2ff2223a..9a21f772411f 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -6,7 +6,7 @@ pub use lint::Lint; pub use lint::LINT_LEVELS; // begin lint list, do not remove this comment, it’s used in `update_lints` -pub const ALL_LINTS: [Lint; 345] = [ +pub const ALL_LINTS: [Lint; 346] = [ Lint { name: "absurd_extreme_comparisons", group: "correctness",