From e59fa30b780270e20a4966430d515d27109100b9 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 6 Feb 2023 17:05:05 +0100 Subject: [PATCH] Fix CI clippy error Variables can be used directly in the `format!` string. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index a34c8c0..4546833 100644 --- a/src/config.rs +++ b/src/config.rs @@ -142,7 +142,7 @@ impl Config { } } - let global_config = format!("/etc/{}/{}", env!("CARGO_BIN_NAME"), file); + let global_config = format!("/etc/{}/{file}", env!("CARGO_BIN_NAME")); match Self::load_file(&global_config.clone().into()) { Ok(config) => return Ok(config), Err(error) => {