Skip to content

Commit 92cd18a

Browse files
committed
Exit with error code 1 on error
1 parent 91b5094 commit 92cd18a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/cargo-gpu/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ fn main() {
104104
)]
105105
{
106106
eprintln!("Error: {error}");
107-
}
107+
108+
// `clippy::exit` seems to be a false positive in `main()`.
109+
// See: https://github.com/rust-lang/rust-clippy/issues/13518
110+
#[expect(clippy::restriction, reason = "Our central place for safely exiting")]
111+
std::process::exit(1);
112+
};
108113
};
109114
}
110115

0 commit comments

Comments
 (0)