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.
This commit is contained in:
David Sherret 2024-05-08 22:45:06 -04:00 committed by GitHub
parent e6dc4dfbff
commit 47f7bed677
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
52 changed files with 307 additions and 181 deletions

View file

@ -97,6 +97,7 @@ pub async fn info(flags: Flags, info_flags: InfoFlags) -> Result<(), AnyError> {
Ok(())
}
#[allow(clippy::print_stdout)]
fn print_cache_info(
factory: &CliFactory,
json: bool,