Skip to content

Commit 167cede

Browse files
committed
Fix formatting in unused label linting to make tidy checks pass
1 parent 4de4e61 commit 167cede

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_lint/unused.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,9 @@ impl EarlyLintPass for UnusedLabel {
496496
self.0.push((label, false));
497497
}
498498
ast::ExprKind::Break(Some(label), _) | ast::ExprKind::Continue(Some(label)) => {
499-
if let Some((_, ref mut was_used)) = self.0.iter_mut().rev().find(|(l, _)| label == *l) {
499+
if let Some((_, ref mut was_used)) =
500+
self.0.iter_mut().rev().find(|(l, _)| label == *l)
501+
{
500502
*was_used = true;
501503
}
502504
}
@@ -515,7 +517,7 @@ impl EarlyLintPass for UnusedLabel {
515517
ctxt.span_lint(UNUSED_LABEL, label.ident.span, "unused label");
516518
}
517519
}
518-
},
520+
}
519521
_ => {}
520522
}
521523
}

0 commit comments

Comments
 (0)