diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-11-25 17:10:05 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-11-28 10:40:08 +0100 |
| commit | f62eab43123ac463d7ff95590c285cb30e86b1f7 (patch) | |
| tree | 61d30ec6d34c23361d1ee0747d7e517be0247889 | |
| parent | f585414cd2fc635fecfe0437f9f71b08aba51d16 (diff) | |
| download | rust-f62eab43123ac463d7ff95590c285cb30e86b1f7.tar.gz rust-f62eab43123ac463d7ff95590c285cb30e86b1f7.zip | |
Adjust description once more
| -rw-r--r-- | clippy_lints/src/semicolon_block.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/semicolon_block.rs b/clippy_lints/src/semicolon_block.rs index 6861b370939..d3cab68137c 100644 --- a/clippy_lints/src/semicolon_block.rs +++ b/clippy_lints/src/semicolon_block.rs @@ -8,7 +8,7 @@ use rustc_span::Span; declare_clippy_lint! { /// ### What it does /// - /// Checks for semicolon terminated blocks containing only a single expression. + /// Suggests moving the semicolon from a block inside of the block to its kast expression. /// /// ### Why is this bad? /// @@ -36,7 +36,7 @@ declare_clippy_lint! { declare_clippy_lint! { /// ### What it does /// - /// Checks for blocks containing only a single semicolon terminated statement. + /// Suggests moving the semicolon from a block's final expression outside of the block. /// /// ### Why is this bad? /// @@ -80,7 +80,7 @@ impl LateLintPass<'_> for SemicolonBlock { span, .. } = stmt else { return }; - semicolon_outside_block(cx, block, expr, span) + semicolon_outside_block(cx, block, expr, span); }, StmtKind::Semi(Expr { kind: ExprKind::Block(block @ Block { expr: Some(tail), .. }, _), |
