cargo fmt
This commit is contained in:
@@ -319,7 +319,11 @@ fn emit_csv<W: std::io::Write>(
|
||||
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(),
|
||||
})?;
|
||||
}
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user