about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-06-24 04:54:23 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-06-24 04:54:23 +0200
commit0373b007da796463c1376cd33e02b459bdc4276a (patch)
tree2fce4067e773e7a624c59fe7e6d6213a993dc966
parent4434bfac017b4005857731808d39600cd7e02cb8 (diff)
downloadrust-0373b007da796463c1376cd33e02b459bdc4276a.tar.gz
rust-0373b007da796463c1376cd33e02b459bdc4276a.zip
Pacify rustfmt.
-rw-r--r--clippy_lints/src/needless_continue.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/clippy_lints/src/needless_continue.rs b/clippy_lints/src/needless_continue.rs
index 2ab5940875b..97175f869b6 100644
--- a/clippy_lints/src/needless_continue.rs
+++ b/clippy_lints/src/needless_continue.rs
@@ -210,9 +210,8 @@ where
     F: FnMut(&ast::Block, Option<&ast::Label>),
 {
     if let ast::ExprKind::While(_, loop_block, label)
-        | ast::ExprKind::ForLoop(_, _, loop_block, label)
-        | ast::ExprKind::Loop(loop_block, label)
-        = &expr.node
+    | ast::ExprKind::ForLoop(_, _, loop_block, label)
+    | ast::ExprKind::Loop(loop_block, label) = &expr.node
     {
         func(loop_block, label.as_ref());
     }