Skip to content

Commit

Permalink
Move app code into main()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartin committed Apr 2, 2024
1 parent f299d18 commit b879e07
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn std::error::Error>> {
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let matches = Command::new(clap::crate_name!())
.version(clap::crate_version!())
.author(clap::crate_authors!())
Expand Down

0 comments on commit b879e07

Please sign in to comment.