From 55bc50744a2831afa02a37c696963d9f80b73c73 Mon Sep 17 00:00:00 2001 From: Dani Date: Fri, 4 Sep 2026 16:04:48 +0200 Subject: [PATCH] fix(audit): remove useless borrow in syslog format! argument Trivial clippy::useless_borrows_in_formatting fix. Not connected to any other change -- found while running clippy locally ahead of an unrelated PR and noticed CI's Rust job pulls dtolnay/rust-toolchain@stable unpinned, so this trips CI on the current stable release even though it was clean when main last built (2026-05-27). Submitted standalone so it does not distract from that PR's diff. --- crates/common/src/audit/forwarders.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/common/src/audit/forwarders.rs b/crates/common/src/audit/forwarders.rs index fe45da08..b4104cc4 100644 --- a/crates/common/src/audit/forwarders.rs +++ b/crates/common/src/audit/forwarders.rs @@ -54,7 +54,7 @@ fn build_syslog_message(facility: u8, entry: &AuditEntry, newline: bool) -> Stri let mut message = format!( "<{priority}>1 {ts} think-watch audit - {action} {sd} {action} on {resource}", - ts = &entry.created_at, + ts = entry.created_at, action = entry.action, sd = structured_data, );