From 7c5deace234f251a34ed410ee6303eacf85e3f3d Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Sat, 24 Feb 2024 08:00:37 +0000 Subject: [PATCH] Restyled by rustfmt --- cli/src/parser.rs | 1 - shared/src/logger/mod.rs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/src/parser.rs b/cli/src/parser.rs index 98d9325..cafe057 100644 --- a/cli/src/parser.rs +++ b/cli/src/parser.rs @@ -103,7 +103,6 @@ pub struct CliServerArgs { #[clap(short = 't', long = "trace", action = clap::ArgAction::Count)] pub trace: u8, - /// Optional: Add a flag to edit the width and height of the window. /// Default: 1200 #[clap(long = "width", default_value = "1200")] diff --git a/shared/src/logger/mod.rs b/shared/src/logger/mod.rs index 662d519..1ea1642 100644 --- a/shared/src/logger/mod.rs +++ b/shared/src/logger/mod.rs @@ -7,10 +7,10 @@ pub fn init_logger(verbose: u8, debug: u8, trace: u8) -> Result<(), FractalError (0, 0, 0) => LevelFilter::Error, // default (_, 1, 0) => LevelFilter::Debug, // -d (1, _, _) => LevelFilter::Info, // -v - (_, _, 1) => LevelFilter::Trace, // -t - _ => LevelFilter::Warn, // multiple flags + (_, _, 1) => LevelFilter::Trace, // -t + _ => LevelFilter::Warn, // multiple flags }; - + let mut builder = Builder::from_env(Env::default()); builder.format_timestamp(Some(env_logger::TimestampPrecision::Millis));