Private
Public Access
1
0

cargo fmt

This commit is contained in:
2025-06-06 16:39:31 -07:00
parent 8cd72d9417
commit 1d3b2f25ba
44 changed files with 758 additions and 505 deletions

View File

@@ -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();
}