]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/else_if_without_else.rs
Auto merge of #81993 - flip1995:clippyup, r=Manishearth
[rust.git] / clippy_lints / src / else_if_without_else.rs
index fb10ca48074ed10efc228422674221771d5536b5..95123e6ff6fe2740b912e8438f426592dc3834d2 100644 (file)
@@ -61,6 +61,7 @@ fn check_expr(&mut self, cx: &EarlyContext<'_>, mut item: &Expr) {
                     ELSE_IF_WITHOUT_ELSE,
                     els.span,
                     "`if` expression with an `else if`, but without a final `else`",
+                    None,
                     "add an `else` block here",
                 );
             }