ksud: make clippy happy (#2683)

e1be06240d/clippy_lints/src/format_args.rs (L168)
This commit is contained in:
5ec1cff
2025-07-18 17:10:40 +08:00
committed by ShirkNeko
parent c1c648e34d
commit a041b90891
9 changed files with 147 additions and 66 deletions

View File

@@ -697,7 +697,7 @@ fn apply_one_rule<'a>(statement: &'a PolicyStatement<'a>, strict: bool) -> Resul
for policy in policies {
if !rustix::process::ksu_set_policy(&FfiPolicy::from(policy)) {
log::warn!("apply rule: {:?} failed.", statement);
log::warn!("apply rule: {statement:?} failed.");
if strict {
return Err(anyhow::anyhow!("apply rule {:?} failed.", statement));
}