From 33ec84075a195c5af743281a9456c723029cd847 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 8 Aug 2023 14:08:19 +0200 Subject: [PATCH] minor cosmetic changes --- src/bin/main/mod.rs | 1 + src/logger/mod.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/main/mod.rs b/src/bin/main/mod.rs index 8aea29b..c9ee8cc 100644 --- a/src/bin/main/mod.rs +++ b/src/bin/main/mod.rs @@ -28,6 +28,7 @@ pub mod args; use args::*; //// CONSTANTS ///////////////////////////////////////////////////////////////////////////////////// +#[allow(dead_code)] const EXIT_SUCCESS: i32 = 0; const EXIT_FAILURE_USAGE: i32 = 1; diff --git a/src/logger/mod.rs b/src/logger/mod.rs index 2a99796..9942436 100644 --- a/src/logger/mod.rs +++ b/src/logger/mod.rs @@ -107,8 +107,12 @@ impl Logger { warn!("trying to reinitialize the logger, ignoring"); return Err(Error::Usage(format!("logging is already initialized"))); } else { - let filter = tracing_subscriber::filter::FilterFn::new(|metadata| { - true + let filter = tracing_subscriber::filter::FilterFn::new(|_metadata| { + #[allow(unused_variables)] + #[allow(unused_mut)] + let mut status = true; + + status }); let basic_subscriber = tracing_subscriber::fmt::Subscriber::builder()