changed import from hashbrown::HashMap to std::collections::HashMap due

to be merged hashbrown in std HashMap
This commit is contained in:
DastInDark
2022-07-24 19:54:53 +09:00
parent a7033c4289
commit 42e6bf0296
10 changed files with 16 additions and 24 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use crate::detections::message::{LOGONSUMMARY_FLAG, STATISTICS_FLAG};
use crate::detections::{detection::EvtxRecordInfo, utils};
use hashbrown::HashMap;
use std::collections::HashMap;
#[derive(Debug)]
pub struct EventStatistics {
@@ -111,7 +111,7 @@ impl EventStatistics {
continue;
}
let username = utils::get_event_value("TargetUserName", &record.record);
let idnum = evtid.unwrap();
let idnum = evtid.unwrap().as_i64().unwrap();
let countlist: [usize; 2] = [0, 0];
if idnum == 4624 {
let count: &mut [usize; 2] = self
+1 -1
View File
@@ -3,7 +3,7 @@ use crate::detections::{configs::CONFIG, detection::EvtxRecordInfo};
use prettytable::{Cell, Row, Table};
use super::statistics::EventStatistics;
use hashbrown::HashMap;
use std::collections::HashMap;
#[derive(Debug)]
pub struct Timeline {