From f21a812f5fe462a6d0c699a78ebb86c64783ddb2 Mon Sep 17 00:00:00 2001 From: atlas Date: Sat, 13 Jun 2026 16:11:17 +0200 Subject: [PATCH] audit-log: #[must_use] on record() per review argus: record() is pub and returns Option; the hive rule requires #[must_use] on public fns returning a non-trivial value. Call sites already consume the return (handle_restart_infra via if-let, tests via let _). --- hive-c0re/src/audit_log.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hive-c0re/src/audit_log.rs b/hive-c0re/src/audit_log.rs index e17f8e93..9ec08284 100644 --- a/hive-c0re/src/audit_log.rs +++ b/hive-c0re/src/audit_log.rs @@ -140,6 +140,7 @@ impl AuditLog { /// live event (e.g. the dashboard stream) emit *this* rather than /// re-deriving the fields, so the stored row and the streamed event /// can't drift. + #[must_use] pub fn record( &self, agent: &str,