Skip to content

Commit 0995781

Browse files
ref: Indicate that commands::main does not return
`commands::main` does not return because it explicitly calls `std::process::exit`. Update `commands::main`'s function signature to indicate this.
1 parent d130855 commit 0995781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ fn setup() {
349349
}
350350

351351
/// Executes the command line application and exits the process.
352-
pub fn main() {
352+
pub fn main() -> ! {
353353
setup();
354354

355355
let exit_code = match execute() {

0 commit comments

Comments
 (0)