audit-log: #[must_use] on record() per review
argus: record() is pub and returns Option<AuditEntry>; 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 _).
This commit is contained in:
parent
629f08a113
commit
f21a812f5f
1 changed files with 1 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ impl AuditLog {
|
||||||
/// live event (e.g. the dashboard stream) emit *this* rather than
|
/// live event (e.g. the dashboard stream) emit *this* rather than
|
||||||
/// re-deriving the fields, so the stored row and the streamed event
|
/// re-deriving the fields, so the stored row and the streamed event
|
||||||
/// can't drift.
|
/// can't drift.
|
||||||
|
#[must_use]
|
||||||
pub fn record(
|
pub fn record(
|
||||||
&self,
|
&self,
|
||||||
agent: &str,
|
agent: &str,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue