cargo fmt
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
mod client;
|
||||
mod daemon;
|
||||
mod db;
|
||||
mod printers;
|
||||
mod daemon;
|
||||
|
||||
use anyhow::Result;
|
||||
use clap::{Parser, Subcommand};
|
||||
@@ -33,7 +33,7 @@ enum Commands {
|
||||
Daemon {
|
||||
#[command(subcommand)]
|
||||
command: daemon::Commands,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
async fn run_command(command: Commands) -> Result<()> {
|
||||
@@ -50,7 +50,7 @@ fn initialize_logging() {
|
||||
.map(|s| s.parse::<LevelFilter>().unwrap_or(LevelFilter::Info))
|
||||
.unwrap_or(LevelFilter::Info);
|
||||
|
||||
env_logger::Builder::from_default_env()
|
||||
env_logger::Builder::from_default_env()
|
||||
.format_timestamp_secs()
|
||||
.filter_level(log_level)
|
||||
.init();
|
||||
@@ -62,7 +62,8 @@ async fn main() {
|
||||
|
||||
let cli = Cli::parse();
|
||||
|
||||
run_command(cli.command).await
|
||||
run_command(cli.command)
|
||||
.await
|
||||
.map_err(|e| println!("Error: {}", e))
|
||||
.err();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user