about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKyle Stachowicz <kylestach99@gmail.com>2018-05-15 20:58:09 -0700
committerKyle Stachowicz <kylestach99@gmail.com>2018-05-18 16:57:15 -0700
commit167cedefe63b366278dbd83b533b051cd417fcf0 (patch)
treef1e2ad40df631a4fcf8c6f773ea45a11b2e18a58 /src
parent4de4e6186417489b37bc73c064b35effe7e4409a (diff)
downloadrust-167cedefe63b366278dbd83b533b051cd417fcf0.tar.gz
rust-167cedefe63b366278dbd83b533b051cd417fcf0.zip
Fix formatting in unused label linting to make tidy checks pass
Diffstat (limited to 'src')
-rw-r--r--src/librustc_lint/unused.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc_lint/unused.rs b/src/librustc_lint/unused.rs
index f55a37697bc..2321d40f150 100644
--- a/src/librustc_lint/unused.rs
+++ b/src/librustc_lint/unused.rs
@@ -496,7 +496,9 @@ impl EarlyLintPass for UnusedLabel {
                 self.0.push((label, false));
             }
             ast::ExprKind::Break(Some(label), _) | ast::ExprKind::Continue(Some(label)) => {
-                if let Some((_, ref mut was_used)) = self.0.iter_mut().rev().find(|(l, _)| label == *l) {
+                if let Some((_, ref mut was_used)) =
+                    self.0.iter_mut().rev().find(|(l, _)| label == *l)
+                {
                     *was_used = true;
                 }
             }
@@ -515,7 +517,7 @@ impl EarlyLintPass for UnusedLabel {
                         ctxt.span_lint(UNUSED_LABEL, label.ident.span, "unused label");
                     }
                 }
-            },
+            }
             _ => {}
         }
     }