Skip to content

Commit ad78740

Browse files
bb-connorclaude
andcommitted
fix(clippy): suppress expect_used in test module and too_many_arguments
Allow clippy::expect_used in clawdstrike-policy-event test module where json!() macro output is statically known to be an object. Allow clippy::too_many_arguments on enqueue_offline_audit_event which aggregates audit context fields. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 77d4222 commit ad78740

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/agent/src-tauri/src/policy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ fn normalize_policy_check_input(mut input: PolicyCheckInput) -> PolicyCheckInput
7373
input
7474
}
7575

76+
#[allow(clippy::too_many_arguments)]
7677
async fn enqueue_offline_audit_event(
7778
audit_queue: Option<&Arc<crate::daemon::AuditQueue>>,
7879
action_type: &str,

crates/libs/clawdstrike-policy-event/src/decision.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub(crate) fn severity_from_value(value: &serde_json::Value) -> Option<String> {
2222
}
2323

2424
#[cfg(test)]
25+
#[allow(clippy::expect_used)]
2526
mod tests {
2627
use super::*;
2728
use serde_json::json;

0 commit comments

Comments
 (0)