cargo fmt --all
This commit is contained in:
@@ -138,7 +138,8 @@ impl Detection {
|
||||
rules: &Vec<RuleNode>,
|
||||
) -> Vec<EvtxRecordInfo> {
|
||||
// evtx_parser.records_json()でevtxをxmlに変換するJobを作成
|
||||
let handles: Vec<JoinHandle<Vec<err::Result<SerializedEvtxRecord<serde_json::Value>>>>> = evtx_parsers
|
||||
let handles: Vec<JoinHandle<Vec<err::Result<SerializedEvtxRecord<serde_json::Value>>>>> =
|
||||
evtx_parsers
|
||||
.into_iter()
|
||||
.map(|mut evtx_parser| {
|
||||
return spawn(async move {
|
||||
@@ -206,7 +207,10 @@ impl Detection {
|
||||
}
|
||||
|
||||
let evtx_filepath = evtx_files[parser_idx].display().to_string();
|
||||
let record_info = EvtxRecordInfo{ evtx_filepath: evtx_filepath, record: record_json};
|
||||
let record_info = EvtxRecordInfo {
|
||||
evtx_filepath: evtx_filepath,
|
||||
record: record_json,
|
||||
};
|
||||
return Option::Some(record_info);
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user