Skip to content

Commit 1f36d4d

Browse files
committed
run cargo dev fmt on changes
1 parent 2b93d2c commit 1f36d4d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clippy_lints/src/exit.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ declare_lint_pass!(Exit => [EXIT]);
4343

4444
impl<'tcx> LateLintPass<'tcx> for Exit {
4545
fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
46-
if cx.sess().is_test_crate() { return; }
46+
if cx.sess().is_test_crate() {
47+
return;
48+
}
4749

4850
if let ExprKind::Call(path_expr, [_]) = e.kind
4951
&& let ExprKind::Path(ref path) = path_expr.kind

tests/ui/exit4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
fn main() {
77
std::process::exit(0)
8-
}
8+
}

0 commit comments

Comments
 (0)