Skip to content

Commit

Permalink
ref: Update main to indicate it does not return
Browse files Browse the repository at this point in the history
Sentry CLI's `main` function calls `commands::main`, which does not return, since it calls `std::process::exit`. Update the function signature to reflect this.
  • Loading branch information
szokeasaurusrex committed Oct 23, 2024
1 parent 0995781 commit 6d0729d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ mod config;
mod constants;
mod utils;

pub fn main() {
pub fn main() -> ! {
commands::main()
}

0 comments on commit 6d0729d

Please sign in to comment.