style(secrets-mcp): rustfmt web.rs audit mapping
Made-with: Cursor
This commit is contained in:
@@ -410,9 +410,7 @@ async fn audit_page(
|
|||||||
let entries = rows
|
let entries = rows
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|row| AuditEntryView {
|
.map(|row| AuditEntryView {
|
||||||
created_at_iso: row
|
created_at_iso: row.created_at.to_rfc3339_opts(SecondsFormat::Secs, true),
|
||||||
.created_at
|
|
||||||
.to_rfc3339_opts(SecondsFormat::Secs, true),
|
|
||||||
action: row.action,
|
action: row.action,
|
||||||
target: format_audit_target(&row.namespace, &row.kind, &row.name),
|
target: format_audit_target(&row.namespace, &row.kind, &row.name),
|
||||||
detail: serde_json::to_string_pretty(&row.detail).unwrap_or_else(|_| "{}".to_string()),
|
detail: serde_json::to_string_pretty(&row.detail).unwrap_or_else(|_| "{}".to_string()),
|
||||||
|
|||||||
Reference in New Issue
Block a user