From e722b1338e22c46bbe74a8e7a82bc29916570105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20F=C3=BCrstenau?= Date: Wed, 19 Dec 2018 20:31:08 +0100 Subject: [PATCH] Reinserted commata --- clippy_lints/src/question_mark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/question_mark.rs b/clippy_lints/src/question_mark.rs index c7501ccf2d7..98aeb3a8e10 100644 --- a/clippy_lints/src/question_mark.rs +++ b/clippy_lints/src/question_mark.rs @@ -127,7 +127,7 @@ impl Pass { } false - } + }, ExprKind::Ret(Some(ref expr)) => Self::expression_returns_none(cx, expr), ExprKind::Path(ref qp) => { if let Def::VariantCtor(def_id, _) = cx.tables.qpath_def(qp, expression.hir_id) { @@ -135,7 +135,7 @@ impl Pass { } false - } + }, _ => false, } }