fixed clippy error

This commit is contained in:
DustInDark
2022-06-16 18:23:16 +09:00
parent 7f381c666e
commit 3bcdc6208f
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ impl Detection {
// ルールファイルをパースします。
pub fn parse_rule_files(
level: String,
rulespath: &PathBuf,
rulespath: &Path,
exclude_ids: &filter::RuleExclude,
) -> Vec<RuleNode> {
// ルールファイルのパースを実行
@@ -409,7 +409,7 @@ mod tests {
#[test]
fn test_parse_rule_files() {
let level = "informational";
let opt_rule_path = Some("./test_files/rules/level_yaml");
let opt_rule_path = Path::new("./test_files/rules/level_yaml");
let cole =
Detection::parse_rule_files(level.to_owned(), opt_rule_path, &filter::exclude_ids());
assert_eq!(5, cole.len());