Adjust description once more

This commit is contained in:
Lukas Wirth 2022-11-25 17:10:05 +01:00
parent f585414cd2
commit f62eab4312

View File

@ -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), .. }, _),