From 47f7bed677a6b72e873712de8f3988ea891710e4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 8 May 2024 22:45:06 -0400 Subject: chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 1. Generally we should prefer to use the `log` crate. 2. I very often accidentally commit `eprintln`s. When we should use `println` or `eprintln`, it's not too bad to be a bit more verbose and ignore the lint rule. --- bench_util/profiling.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'bench_util') diff --git a/bench_util/profiling.rs b/bench_util/profiling.rs index 239364988..151a29e59 100644 --- a/bench_util/profiling.rs +++ b/bench_util/profiling.rs @@ -39,6 +39,7 @@ macro_rules! bench_or_profile { }; } +#[allow(clippy::print_stdout)] pub fn run_profiles(opts: &TestOpts, tests: Vec) { let tests = filter_tests(opts, tests); // let decs = tests.iter().map(|t| t.desc.clone()).collect(); -- cgit v1.2.3