Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f36d4d

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /