From 853be957ee31c8b9550af3a393ea360b794ae644 Mon Sep 17 00:00:00 2001 From: Jia Chao Date: Tue, 6 Aug 2024 11:33:08 +0800 Subject: [PATCH] cargo fmt Signed-off-by: Jia Chao --- src/analyzer/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/analyzer/mod.rs b/src/analyzer/mod.rs index a6500a8..06b4af6 100644 --- a/src/analyzer/mod.rs +++ b/src/analyzer/mod.rs @@ -76,13 +76,16 @@ fn summary(cli: &Cli) -> crate::Result<()> { let pos: usize = cusa.severity().into(); res[pos] += 1; } - let msg = format!(" + let msg = format!( + " 漏洞扫描结果如下: 致命漏洞: {:3} 个 高危漏洞: {:3} 个 中危漏洞: {:3} 个 低危漏洞: {:3} 个 - ", res[4], res[3], res[2], res[1]); + ", + res[4], res[3], res[2], res[1] + ); println!("{}", msg); Ok(())