Skip to content

Commit

Permalink
帰り値を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
aida0710 committed Feb 12, 2024
1 parent 9fde515 commit 26cbafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::process;

pub fn error(message: &str) {
pub fn error(message: &str) -> ! {
eprintln!("Error: {}", message);
process::exit(1);
}

0 comments on commit 26cbafa

Please sign in to comment.