cargo fmt

This commit is contained in:
DustInDark
2022-06-15 03:39:33 +09:00
parent 3552204378
commit b49f80a2f1
2 changed files with 4 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
use crate::detections::{configs, detection::EvtxRecordInfo, utils};
use crate::detections::print::{LOGONSUMMARY_FLAG, STATISTICS_FLAG}; use crate::detections::print::{LOGONSUMMARY_FLAG, STATISTICS_FLAG};
use crate::detections::{configs, detection::EvtxRecordInfo, utils};
use hashbrown::HashMap; use hashbrown::HashMap;
#[derive(Debug)] #[derive(Debug)]
@@ -35,8 +35,7 @@ impl EventStatistics {
pub fn evt_stats_start(&mut self, records: &[EvtxRecordInfo]) { pub fn evt_stats_start(&mut self, records: &[EvtxRecordInfo]) {
// 引数でstatisticsオプションが指定されている時だけ、統計情報を出力する。 // 引数でstatisticsオプションが指定されている時だけ、統計情報を出力する。
if !*STATISTICS_FLAG if !*STATISTICS_FLAG {
{
return; return;
} }
@@ -51,8 +50,7 @@ impl EventStatistics {
pub fn logon_stats_start(&mut self, records: &[EvtxRecordInfo]) { pub fn logon_stats_start(&mut self, records: &[EvtxRecordInfo]) {
// 引数でlogon-summaryオプションが指定されている時だけ、統計情報を出力する。 // 引数でlogon-summaryオプションが指定されている時だけ、統計情報を出力する。
if !*LOGONSUMMARY_FLAG if !*LOGONSUMMARY_FLAG {
{
return; return;
} }

View File

@@ -1,5 +1,5 @@
use crate::detections::{configs::CONFIG, detection::EvtxRecordInfo};
use crate::detections::print::{LOGONSUMMARY_FLAG, STATISTICS_FLAG}; use crate::detections::print::{LOGONSUMMARY_FLAG, STATISTICS_FLAG};
use crate::detections::{configs::CONFIG, detection::EvtxRecordInfo};
use prettytable::{Cell, Row, Table}; use prettytable::{Cell, Row, Table};
use super::statistics::EventStatistics; use super::statistics::EventStatistics;