cargo fmt

This commit is contained in:
DustInDark
2022-06-24 23:20:26 +09:00
parent 30da5fb2a0
commit ade010b6e0

View File

@@ -233,7 +233,10 @@ impl ParseYaml {
};
let entry = self.rule_load_cnt.entry(entry_key.to_string()).or_insert(0);
*entry += 1;
if entry_key == "excluded" || (entry_key == "noisy" && !configs::CONFIG.read().unwrap().args.enable_noisy_rules ) {
if entry_key == "excluded"
|| (entry_key == "noisy"
&& !configs::CONFIG.read().unwrap().args.enable_noisy_rules)
{
return Option::None;
}
}