From 7be46d437309c2e6b925b7499257f384c697f921 Mon Sep 17 00:00:00 2001 From: prplV Date: Wed, 18 Dec 2024 11:02:49 +0300 Subject: [PATCH] no warn in preboot.rs and config.rs + no dbg --- noxis-rs/src/options/config.rs | 2 +- noxis-rs/src/options/preboot.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/noxis-rs/src/options/config.rs b/noxis-rs/src/options/config.rs index 92ac033..65b4731 100644 --- a/noxis-rs/src/options/config.rs +++ b/noxis-rs/src/options/config.rs @@ -7,7 +7,7 @@ use std::os::unix::process::CommandExt; use std::process::Command; use std::sync::Arc; use std::{env, fs}; -use std::fmt::format; +// use std::fmt::format; use super::preboot::PrebootParams; use tokio::time::{Duration, sleep}; diff --git a/noxis-rs/src/options/preboot.rs b/noxis-rs/src/options/preboot.rs index 10e030f..90c8102 100644 --- a/noxis-rs/src/options/preboot.rs +++ b/noxis-rs/src/options/preboot.rs @@ -1,4 +1,5 @@ // module to handle pre-boot params of the monitor +#[allow(unused_imports)] use anyhow::{Result, Ok, Error}; use clap::Parser; use std::path::PathBuf; @@ -110,7 +111,7 @@ impl PrebootParams { } // existing log dir if !self.log_to.exists() && !self.no_logs { - eprintln!("Error: LogDir not found or Noxis can't read it. LogDir was set to default"); + eprintln!("Error: Log-Dir not found or Noxis can't read it. LogDir was set to default"); self.log_to = PathBuf::from("./"); // return Err(Error::msg("Log Directory Not Found or Noxis can't read it. Cannot start")); } @@ -121,7 +122,6 @@ impl PrebootParams { // return Err(Error::msg("Local Config Not Found or Noxis can't read it. Cannot start")); } // redis server check - dbg!(&self); Ok(self) } } @@ -134,7 +134,7 @@ mod preboot_unitests{ #[test] fn parsing_zero_args() { - assert!(PrebootParams::try_parse_from(vec!["runner-rs"]).is_ok()) + assert!(PrebootParams::try_parse_from(vec!["runner-rs"]).is_ok()) } #[test] fn parsing_hagent_valid_args() {