diff --git a/src/afterfact.rs b/src/afterfact.rs index 3d2d25bc..3714b088 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -319,7 +319,11 @@ fn emit_csv( details: &detect_info.detail, record_information: detect_info.record_information.as_deref(), file_path: &detect_info.filepath, - rule_file: Path::new(&detect_info.rulepath).file_name().unwrap().to_str().unwrap(), + rule_file: Path::new(&detect_info.rulepath) + .file_name() + .unwrap() + .to_str() + .unwrap(), record_i_d: detect_info.record_id.as_deref(), })?; } diff --git a/src/detections/detection.rs b/src/detections/detection.rs index c5e6ff47..91fd7f02 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -22,7 +22,7 @@ use hashbrown; use hashbrown::HashMap; use serde_json::Value; use std::fmt::Write; -use std::path::{Path}; +use std::path::Path; use std::sync::Arc; use tokio::{runtime::Runtime, spawn, task::JoinHandle}; diff --git a/src/detections/utils.rs b/src/detections/utils.rs index 5a0282aa..1dec5959 100644 --- a/src/detections/utils.rs +++ b/src/detections/utils.rs @@ -390,9 +390,7 @@ pub fn check_setting_path(base_path: &Path, path: &str) -> PathBuf { mod tests { use std::path::Path; - use crate::detections::utils::{ - self, check_setting_path, make_ascii_titlecase, - }; + use crate::detections::utils::{self, check_setting_path, make_ascii_titlecase}; use regex::Regex; use serde_json::Value;