inline format args

master
Edward Shen 2023-07-28 00:17:59 -07:00
parent 87001a9850
commit 537225dff2
Signed by: edward
GPG Key ID: 0A400FFE10097C30
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ fn load_config_from_path<P: AsRef<Path>>(path: P) -> Option<Config> {
let current_mode = metadata.permissions().mode() & 0o777; let current_mode = metadata.permissions().mode() & 0o777;
if current_mode != 0o600 { if current_mode != 0o600 {
warn!( warn!(
found = format!("{:o}", current_mode), found = format!("{current_mode:o}"),
expected = "600", expected = "600",
"File permissions too broad! Your GLOBAL Cloudflare API key is accessible to all users on the system!" "File permissions too broad! Your GLOBAL Cloudflare API key is accessible to all users on the system!"
); );