fixed clippy error

This commit is contained in:
DastInDark
2022-09-23 13:12:59 +09:00
parent 11a93fa704
commit fd3f0d6c00

View File

@@ -364,7 +364,7 @@ impl Detection {
}
let detect_info = DetectInfo {
rulepath: (&rule.rulepath).to_owned(),
rulepath: rule.rulepath.to_owned(),
ruletitle: rule.yaml["title"].as_str().unwrap_or("-").to_string(),
level: LEVEL_ABBR.get(&level).unwrap_or(&level).to_string(),
computername: record_info.record["Event"]["System"]["Computer"]
@@ -495,7 +495,7 @@ impl Detection {
}
let detect_info = DetectInfo {
rulepath: (&rule.rulepath).to_owned(),
rulepath: rule.rulepath.to_owned(),
ruletitle: rule.yaml["title"].as_str().unwrap_or("-").to_string(),
level: LEVEL_ABBR.get(&level).unwrap_or(&level).to_string(),
computername: "-".to_owned(),