Skip to content

Commit 7bbc16d

Browse files
ada4asamueltardieu
andauthored
Apply suggestion from @samueltardieu
Co-authored-by: Samuel Tardieu <[email protected]>
1 parent bb00aa2 commit 7bbc16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/semicolon_block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl LateLintPass<'_> for SemicolonBlock {
144144
kind: ExprKind::Block(block, _),
145145
..
146146
}) if !block.span.from_expansion() && stmt.span.contains(block.span) => {
147-
if let None = block.expr
147+
if block.expr.is_none()
148148
&& let [.., stmt] = block.stmts
149149
&& let StmtKind::Semi(expr) = stmt.kind
150150
{

0 commit comments

Comments
 (0)