Allow single_match_else

This commit is contained in:
flip1995 2018-11-02 14:00:46 +01:00
parent faa1db3391
commit 32396f6e18
No known key found for this signature in database
GPG key ID: E8E897A5870E41C2

View file

@ -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",