diff --git a/src/main.rs b/src/main.rs index 972dd56..37bb549 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ fn args<'a>() -> clap::ArgMatches<'a> { .get_matches() } -fn core_main() -> Result<(), Box> { +fn main() -> Result<(), Box> { let args = args(); const CLAP: &str = "Guaranteed by clap"; @@ -67,13 +67,3 @@ fn core_main() -> Result<(), Box> { trust_identity, ) } - -fn main() { - match core_main() { - Ok(()) => (), - Err(err) => { - eprintln!("{:#?}", err); - std::process::exit(1) - } - } -}