diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
| commit | a1c7e6908a26e10f6e1f23a51721664b5e2d838d (patch) | |
| tree | c575c76f1b43359ed74913da4c6a2636643f1ba0 /crates/shirabe/src/advisory/audit_config.rs | |
| parent | 7f606f36fef0c0467c3c0db3d0da33af486dae8a (diff) | |
| download | php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.gz php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.zst php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.zip | |
chore(style): cargo fmt
Diffstat (limited to 'crates/shirabe/src/advisory/audit_config.rs')
| -rw-r--r-- | crates/shirabe/src/advisory/audit_config.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crates/shirabe/src/advisory/audit_config.rs b/crates/shirabe/src/advisory/audit_config.rs index da01a2c..f75d499 100644 --- a/crates/shirabe/src/advisory/audit_config.rs +++ b/crates/shirabe/src/advisory/audit_config.rs @@ -59,7 +59,10 @@ impl AuditConfig { /// Detailed format: ['CVE-123' => ['apply' => 'audit|block|all', 'reason' => '...']] fn parse_ignore_with_apply( config: &PhpMixed, - ) -> anyhow::Result<(IndexMap<String, Option<String>>, IndexMap<String, Option<String>>)> { + ) -> anyhow::Result<( + IndexMap<String, Option<String>>, + IndexMap<String, Option<String>>, + )> { let mut for_audit: IndexMap<String, Option<String>> = IndexMap::new(); let mut for_block: IndexMap<String, Option<String>> = IndexMap::new(); @@ -83,11 +86,13 @@ impl AuditConfig { (key.clone(), "all".to_string(), Some(reason_str.clone())) } PhpMixed::Array(detail) => { - let apply = detail.get("apply") + let apply = detail + .get("apply") .and_then(|v| v.as_string()) .unwrap_or("all") .to_string(); - let reason = detail.get("reason") + let reason = detail + .get("reason") .and_then(|v| v.as_string()) .map(|s| s.to_string()); |
