Skip to content

Commit eaccc6d

Browse files
committed
[semicolon_if_nothing_returned]: enable the autofix
1 parent 1d33469 commit eaccc6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/semicolon_if_nothing_returned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<'tcx> LateLintPass<'tcx> for SemicolonIfNothingReturned {
4343
if let Some(expr) = block.expr;
4444
let t_expr = cx.typeck_results().expr_ty(expr);
4545
if t_expr.is_unit();
46-
let mut app = Applicability::MaybeIncorrect;
46+
let mut app = Applicability::MachineApplicable;
4747
if let snippet = snippet_with_context(cx, expr.span, block.span.ctxt(), "}", &mut app).0;
4848
if !snippet.ends_with('}') && !snippet.ends_with(';');
4949
if cx.sess().source_map().is_multiline(block.span);

0 commit comments

Comments
 (0)