]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/methods.rs
Add empty_enum lint (just a copy of large_enum_variant for now)
[rust.git] / clippy_lints / src / methods.rs
index 30ffcc9f6e3a66960ef6ba83b9ec12b4975f5439..f0732c1cd903b9c4fdf29d1b95ba0fe435d0e8e8 100644 (file)
@@ -1213,7 +1213,9 @@ fn lint_single_char_pattern(cx: &LateContext, expr: &hir::Expr, arg: &hir::Expr)
                                SINGLE_CHAR_PATTERN,
                                arg.span,
                                "single-character string constant used as pattern",
-                               |db| { db.span_suggestion(expr.span, "try using a char instead:", hint); });
+                               |db| {
+                db.span_suggestion(expr.span, "try using a char instead:", hint);
+            });
         }
     }
 }