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.
1 parent bb00aa2 commit 7bbc16dCopy full SHA for 7bbc16d
clippy_lints/src/semicolon_block.rs
@@ -144,7 +144,7 @@ impl LateLintPass<'_> for SemicolonBlock {
144
kind: ExprKind::Block(block, _),
145
..
146
}) if !block.span.from_expansion() && stmt.span.contains(block.span) => {
147
- if let None = block.expr
+ if block.expr.is_none()
148
&& let [.., stmt] = block.stmts
149
&& let StmtKind::Semi(expr) = stmt.kind
150
{
0 commit comments