chore(linter): deny clippy::print_stdout

This commit is contained in:
Boshen 2023-10-25 22:45:14 +08:00
parent ae74e08141
commit f53a5326a5
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -1,3 +1,4 @@
#![deny(clippy::print_stdout)]
#![allow(clippy::self_named_module_files)] // for rules.rs
#[cfg(test)]
@ -135,6 +136,7 @@ impl Linter {
writeln!(writer, "Total: {}", RULES.len()).unwrap();
}
#[allow(clippy::print_stdout)]
pub fn print_execution_times_if_enable(&self) {
if !self.options.timing {
return;