diff --git a/src/detections/detection.rs b/src/detections/detection.rs index f1b5af43..507a3ec8 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -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(),