diff options
| author | flip1995 <hello@philkrones.com> | 2018-11-02 14:00:46 +0100 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2018-11-02 14:00:46 +0100 |
| commit | 32396f6e181da070269a093efe726fa1a4561cd6 (patch) | |
| tree | e9416e81009ebc48539874b9aca3427d6db3e7b0 | |
| parent | faa1db33912cf000c6f9d31662e30006c41c3c59 (diff) | |
| download | rust-32396f6e181da070269a093efe726fa1a4561cd6.tar.gz rust-32396f6e181da070269a093efe726fa1a4561cd6.zip | |
Allow single_match_else
| -rw-r--r-- | clippy_lints/src/attrs.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index 3a4322e1273..89d676f3f4c 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -285,6 +285,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AttrPass { } } +#[allow(clippy::single_match_else)] fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) { let lint_store = cx.lints(); for lint in items { @@ -310,7 +311,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) { &name_lower, Some(tool_name.as_str()) ) { - CheckLintNameResult::NoLint => {} + CheckLintNameResult::NoLint => (), _ => { db.span_suggestion(lint.span, "lowercase the lint name", |
