From 6931724ec419732f7fd4ce493fff3e699d416c16 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Wed, 6 Apr 2022 23:30:32 +0900 Subject: [PATCH] fixed comment out processing in level_tuning.txt --- src/options/level_tuning.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options/level_tuning.rs b/src/options/level_tuning.rs index 3a0510fa..94c9aef8 100644 --- a/src/options/level_tuning.rs +++ b/src/options/level_tuning.rs @@ -32,7 +32,7 @@ impl LevelTuning { || _level.starts_with("medium") || _level.starts_with("high") || _level.starts_with("critical") { - _level + _level.split('#').collect::>()[0] } else { return Result::Err("level tuning file's level must in informational, low, medium, high, critical".to_string()) }