fixed clippy error
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user