about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCentri3 <114838443+Centri3@users.noreply.github.com>2023-04-16 23:59:31 -0500
committerCentri3 <114838443+Centri3@users.noreply.github.com>2023-04-16 23:59:31 -0500
commita57445d4d6c14adfd2103796a577805a04bb4db5 (patch)
tree13ed766fdad78b88a21c3713df2f4d2084d53358
parenta7c3301b5884b33fc87f2e498f28426dfbcb1a84 (diff)
downloadrust-a57445d4d6c14adfd2103796a577805a04bb4db5.tar.gz
rust-a57445d4d6c14adfd2103796a577805a04bb4db5.zip
make cargo test pass, again
-rw-r--r--clippy_lints/src/semicolon_block.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/clippy_lints/src/semicolon_block.rs b/clippy_lints/src/semicolon_block.rs
index d85d3b58305..c9689454c63 100644
--- a/clippy_lints/src/semicolon_block.rs
+++ b/clippy_lints/src/semicolon_block.rs
@@ -72,7 +72,7 @@ declare_clippy_lint! {
     ///
     /// ### Why is this bad?
     ///
-    /// Some may prefer if the  semicolon is outside if a block is only one
+    /// Some may prefer if the semicolon is outside if a block is only one
     /// expression, as this allows rustfmt to make it singleline. In the case that
     /// it isn't, it should be inside.
     /// Take a look at both `semicolon_inside_block` and `semicolon_outside_block` for alternatives.
@@ -125,14 +125,14 @@ impl LateLintPass<'_> for SemicolonBlock {
                     ..
                 } = stmt else { return };
                 semicolon_outside_block(cx, block, expr, span);
-                semicolon_outside_block_if_singleline_check_outside(cx, block, expr, stmt.span)
+                semicolon_outside_block_if_singleline_check_outside(cx, block, expr, stmt.span);
             },
             StmtKind::Semi(Expr {
                 kind: ExprKind::Block(block @ Block { expr: Some(tail), .. }, _),
                 ..
             }) if !block.span.from_expansion() => {
                 semicolon_inside_block(cx, block, tail, stmt.span);
-                semicolon_outside_block_if_singleline_check_inside(cx, block, tail, stmt.span)
+                semicolon_outside_block_if_singleline_check_inside(cx, block, tail, stmt.span);
             },
             _ => (),
         }
@@ -197,7 +197,7 @@ fn semicolon_outside_block_if_singleline_check_inside(
             cx,
             SEMICOLON_OUTSIDE_BLOCK_IF_SINGLELINE,
             block.span,
-            &format!("consider moving the `;` inside the block for consistent formatting"),
+            "consider moving the `;` inside the block for consistent formatting",
             |diag| {
                 multispan_sugg_with_applicability(
                     diag,
@@ -228,7 +228,7 @@ fn semicolon_outside_block_if_singleline_check_outside(
             cx,
             SEMICOLON_OUTSIDE_BLOCK_IF_SINGLELINE,
             block.span,
-            &format!("consider moving the `;` outside the block for consistent formatting"),
+            "consider moving the `;` outside the block for consistent formatting",
             |diag| {
                 multispan_sugg_with_applicability(
                     diag,