We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
semicolon_if_nothing_returned
1 parent 1d33469 commit eaccc6dCopy full SHA for eaccc6d
clippy_lints/src/semicolon_if_nothing_returned.rs
@@ -43,7 +43,7 @@ impl<'tcx> LateLintPass<'tcx> for SemicolonIfNothingReturned {
43
if let Some(expr) = block.expr;
44
let t_expr = cx.typeck_results().expr_ty(expr);
45
if t_expr.is_unit();
46
- let mut app = Applicability::MaybeIncorrect;
+ let mut app = Applicability::MachineApplicable;
47
if let snippet = snippet_with_context(cx, expr.span, block.span.ctxt(), "}", &mut app).0;
48
if !snippet.ends_with('}') && !snippet.ends_with(';');
49
if cx.sess().source_map().is_multiline(block.span);
0 commit comments