@@ -72,7 +72,7 @@ declare_clippy_lint! {
72
72
///
73
73
/// ### Why is this bad?
74
74
///
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
76
76
/// expression, as this allows rustfmt to make it singleline. In the case that
77
77
/// it isn't, it should be inside.
78
78
/// Take a look at both `semicolon_inside_block` and `semicolon_outside_block` for alternatives.
@@ -125,14 +125,14 @@ impl LateLintPass<'_> for SemicolonBlock {
125
125
..
126
126
} = stmt else { return } ;
127
127
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 ) ;
129
129
} ,
130
130
StmtKind :: Semi ( Expr {
131
131
kind : ExprKind :: Block ( block @ Block { expr : Some ( tail) , .. } , _) ,
132
132
..
133
133
} ) if !block. span . from_expansion ( ) => {
134
134
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 ) ;
136
136
} ,
137
137
_ => ( ) ,
138
138
}
@@ -197,7 +197,7 @@ fn semicolon_outside_block_if_singleline_check_inside(
197
197
cx,
198
198
SEMICOLON_OUTSIDE_BLOCK_IF_SINGLELINE ,
199
199
block. span ,
200
- & format ! ( "consider moving the `;` inside the block for consistent formatting" ) ,
200
+ "consider moving the `;` inside the block for consistent formatting" ,
201
201
|diag| {
202
202
multispan_sugg_with_applicability (
203
203
diag,
@@ -228,7 +228,7 @@ fn semicolon_outside_block_if_singleline_check_outside(
228
228
cx,
229
229
SEMICOLON_OUTSIDE_BLOCK_IF_SINGLELINE ,
230
230
block. span ,
231
- & format ! ( "consider moving the `;` outside the block for consistent formatting" ) ,
231
+ "consider moving the `;` outside the block for consistent formatting" ,
232
232
|diag| {
233
233
multispan_sugg_with_applicability (
234
234
diag,
0 commit comments