From b879e07634ea46d0dd838d4460b08c3b95c12313 Mon Sep 17 00:00:00 2001 From: Dustin Martin Date: Mon, 4 Mar 2024 17:46:43 -0500 Subject: [PATCH] Move app code into main() --- src/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index e04d738..48d790c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,17 +5,9 @@ use std::collections::HashMap; use std::env; use std::fs; use std::path::PathBuf; -use std::process; #[tokio::main] -async fn main() { - if let Err(e) = run_app().await { - eprintln!("{e}"); - process::exit(1); - } -} - -async fn run_app() -> Result<(), Box> { +async fn main() -> Result<(), Box> { let matches = Command::new(clap::crate_name!()) .version(clap::crate_version!()) .author(clap::crate_authors!())