From 04c0e6ae07025e5a9441a32a91986de2590e85d5 Mon Sep 17 00:00:00 2001 From: itiB Date: Wed, 6 Apr 2022 01:55:19 +0900 Subject: [PATCH] Cargo fmt --- src/options/level_tuning.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/options/level_tuning.rs b/src/options/level_tuning.rs index f9e2ab66..c59f61c7 100644 --- a/src/options/level_tuning.rs +++ b/src/options/level_tuning.rs @@ -127,12 +127,14 @@ mod tests { fn rule_level_level_error_file() -> Result<(), String> { let level_tuning_config_path = "./test_files/config/level_tuning_error2.txt"; let res = LevelTuning::run(level_tuning_config_path); - let expected = Result::Err("level tuning file's level must in informational, low, medium, high, critical".to_string()); + let expected = Result::Err( + "level tuning file's level must in informational, low, medium, high, critical" + .to_string(), + ); assert_eq!(res, expected); Ok(()) } - // TODO: make test option for read ./test_files/rules/ dir. // #[test] // fn test_detect_mutiple_regex_and() {