Skip to content

Commit

Permalink
ref: Indicate that commands::main does not return
Browse files Browse the repository at this point in the history
`commands::main` does not return because it explicitly calls `std::process::exit`. Update `commands::main`'s function signature to indicate this.
  • Loading branch information
szokeasaurusrex committed Oct 23, 2024
1 parent d130855 commit 0995781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ fn setup() {
}

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

let exit_code = match execute() {
Expand Down

0 comments on commit 0995781

Please sign in to comment.