From 4b623bb6312e20c18d635d12c4eceea493bb20a9 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Tue, 7 Jun 2022 19:05:26 +0900 Subject: [PATCH] cargo fmt --- src/detections/utils.rs | 4 +--- src/timeline/timelines.rs | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/detections/utils.rs b/src/detections/utils.rs index 4dc2fed9..fa86b628 100644 --- a/src/detections/utils.rs +++ b/src/detections/utils.rs @@ -275,9 +275,7 @@ fn create_recordinfos(record: &Value) -> String { let summary: Vec = output .iter() - .map(|(key, value)| { - format!("{}:{}", key, value) - }) + .map(|(key, value)| format!("{}:{}", key, value)) .collect(); // 標準出力する時はセルがハイプ区切りになるので、パイプ区切りにしない diff --git a/src/timeline/timelines.rs b/src/timeline/timelines.rs index 420aaf8b..508babbd 100644 --- a/src/timeline/timelines.rs +++ b/src/timeline/timelines.rs @@ -36,12 +36,11 @@ impl Timeline { pub fn tm_stats_dsp_msg(&mut self) { let statics_flag = configs::CONFIG - .read() - .unwrap() - .args - .is_present("statistics"); - if ! statics_flag - { + .read() + .unwrap() + .args + .is_present("statistics"); + if !statics_flag { return; } // 出力メッセージ作成 @@ -72,12 +71,11 @@ impl Timeline { pub fn tm_logon_stats_dsp_msg(&mut self) { let logon_summary_flag = configs::CONFIG - .read() - .unwrap() - .args - .is_present("logon-summary"); - if !logon_summary_flag - { + .read() + .unwrap() + .args + .is_present("logon-summary"); + if !logon_summary_flag { return; } // 出力メッセージ作成