1 2 3 4 5 6 7 8 9 10 11
#![allow(dead_code)] pub fn exit_with_code(code: i32) -> ! { std::process::exit(code) } pub fn handle_exit(force: bool) { if force { exit_with_code(0); } }