From 8dc690ca01fd8da98346871c7877e44729b4ce95 Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 24 Oct 2022 16:22:10 +0200 Subject: [PATCH] Remove redunant format --- src/settings.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index 6d2839f3..09fab199 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -154,21 +154,15 @@ impl Settings { if let Ok(path) = env::var("MCAPTCHA_CONFIG") { let absolute_path = Path::new(&path).canonicalize().unwrap(); log::info!( - "{}", - format!( - "Loading config file from {}", - absolute_path.to_str().unwrap() - ) + "Loading config file from {}", + absolute_path.to_str().unwrap() ); s.merge(File::with_name(absolute_path.to_str().unwrap()))?; } else if Path::new(CURRENT_DIR).exists() { let absolute_path = fs::canonicalize(CURRENT_DIR).unwrap(); log::info!( - "{}", - format!( - "Loading config file from {}", - absolute_path.to_str().unwrap() - ) + "Loading config file from {}", + absolute_path.to_str().unwrap() ); // merging default config from file s.merge(File::with_name(absolute_path.to_str().unwrap()))?;