Fix CI clippy error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
parent
9a6497720f
commit
e59fa30b78
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
match Self::load_file(&global_config.clone().into()) {
|
||||||
Ok(config) => return Ok(config),
|
Ok(config) => return Ok(config),
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
|
|
Loading…
Reference in a new issue