Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a57445d

Browse files
committed
make cargo test pass, again
1 parent a7c3301 commit a57445d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_lints/src/semicolon_block.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ declare_clippy_lint! {
7272
///
7373
/// ### Why is this bad?
7474
///
75-
/// Some may prefer if the semicolon is outside if a block is only one
75+
/// Some may prefer if the semicolon is outside if a block is only one
7676
/// expression, as this allows rustfmt to make it singleline. In the case that
7777
/// it isn't, it should be inside.
7878
/// Take a look at both `semicolon_inside_block` and `semicolon_outside_block` for alternatives.
@@ -125,14 +125,14 @@ impl LateLintPass<'_> for SemicolonBlock {
125125
..
126126
} = stmt else { return };
127127
semicolon_outside_block(cx, block, expr, span);
128-
semicolon_outside_block_if_singleline_check_outside(cx, block, expr, stmt.span)
128+
semicolon_outside_block_if_singleline_check_outside(cx, block, expr, stmt.span);
129129
},
130130
StmtKind::Semi(Expr {
131131
kind: ExprKind::Block(block @ Block { expr: Some(tail), .. }, _),
132132
..
133133
}) if !block.span.from_expansion() => {
134134
semicolon_inside_block(cx, block, tail, stmt.span);
135-
semicolon_outside_block_if_singleline_check_inside(cx, block, tail, stmt.span)
135+
semicolon_outside_block_if_singleline_check_inside(cx, block, tail, stmt.span);
136136
},
137137
_ => (),
138138
}
@@ -197,7 +197,7 @@ fn semicolon_outside_block_if_singleline_check_inside(
197197
cx,
198198
SEMICOLON_OUTSIDE_BLOCK_IF_SINGLELINE,
199199
block.span,
200-
&format!("consider moving the `;` inside the block for consistent formatting"),
200+
"consider moving the `;` inside the block for consistent formatting",
201201
|diag| {
202202
multispan_sugg_with_applicability(
203203
diag,
@@ -228,7 +228,7 @@ fn semicolon_outside_block_if_singleline_check_outside(
228228
cx,
229229
SEMICOLON_OUTSIDE_BLOCK_IF_SINGLELINE,
230230
block.span,
231-
&format!("consider moving the `;` outside the block for consistent formatting"),
231+
"consider moving the `;` outside the block for consistent formatting",
232232
|diag| {
233233
multispan_sugg_with_applicability(
234234
diag,

0 commit comments

Comments
 (0)