Fix CI clippy error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Variables can be used directly in the `format!` string.
This commit is contained in:
finga 2023-02-06 17:05:05 +01:00
parent 9a6497720f
commit e59fa30b78

View file

@ -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) => {