cargo fmt

This commit is contained in:
DastInDark
2022-07-19 22:22:49 +09:00
parent 058537d93d
commit bed2656c5c
3 changed files with 7 additions and 5 deletions

View File

@@ -319,7 +319,11 @@ fn emit_csv<W: std::io::Write>(
details: &detect_info.detail, details: &detect_info.detail,
record_information: detect_info.record_information.as_deref(), record_information: detect_info.record_information.as_deref(),
file_path: &detect_info.filepath, 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(), record_i_d: detect_info.record_id.as_deref(),
})?; })?;
} }

View File

@@ -22,7 +22,7 @@ use hashbrown;
use hashbrown::HashMap; use hashbrown::HashMap;
use serde_json::Value; use serde_json::Value;
use std::fmt::Write; use std::fmt::Write;
use std::path::{Path}; use std::path::Path;
use std::sync::Arc; use std::sync::Arc;
use tokio::{runtime::Runtime, spawn, task::JoinHandle}; use tokio::{runtime::Runtime, spawn, task::JoinHandle};

View File

@@ -390,9 +390,7 @@ pub fn check_setting_path(base_path: &Path, path: &str) -> PathBuf {
mod tests { mod tests {
use std::path::Path; use std::path::Path;
use crate::detections::utils::{ use crate::detections::utils::{self, check_setting_path, make_ascii_titlecase};
self, check_setting_path, make_ascii_titlecase,
};
use regex::Regex; use regex::Regex;
use serde_json::Value; use serde_json::Value;