about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkraktus <kraktus@users.noreply.github.com>2022-10-02 12:35:02 +0200
committerkraktus <kraktus@users.noreply.github.com>2022-10-02 15:03:48 +0200
commit22be60b4f07bcfc8e72976b4d9f2cd1f9cae29d5 (patch)
tree03dca895d69faa83dfddbe07dd653312a8222c0e
parenta35734c172ba95a6d8758c7c5bb6601bcd3a5485 (diff)
downloadrust-22be60b4f07bcfc8e72976b4d9f2cd1f9cae29d5.tar.gz
rust-22be60b4f07bcfc8e72976b4d9f2cd1f9cae29d5.zip
fix indentation
-rw-r--r--clippy_lints/src/manual_assert.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/manual_assert.rs b/clippy_lints/src/manual_assert.rs
index cbc9c4ca6ad..825ec84b4a8 100644
--- a/clippy_lints/src/manual_assert.rs
+++ b/clippy_lints/src/manual_assert.rs
@@ -56,9 +56,9 @@ impl<'tcx> LateLintPass<'tcx> for ManualAssert {
                     comments += "\n";
                 }
                 let (cond, not) = match cond.kind {
-                     ExprKind::Unary(UnOp::Not, e) => (e, ""),
-                     _ => (cond, "!"),
-                 };
+                    ExprKind::Unary(UnOp::Not, e) => (e, ""),
+                    _ => (cond, "!"),
+                };
                 let cond_sugg = sugg::Sugg::hir_with_applicability(cx, cond, "..", &mut applicability).maybe_par();
                 let sugg = format!("assert!({not}{cond_sugg}, {format_args_snip});");
                 // we show to the user the suggestion without the comments, but when applicating the fix, include the comments in the block