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