Skip to content

Commit

Permalink
Lint println usage (#624)
Browse files Browse the repository at this point in the history
* Enable clippy lint for println/err/dbg

* Replace println

* fixup! Replace println
  • Loading branch information
GeorgeHahn authored Jul 7, 2023
1 parent fca71f4 commit 51519ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blackhole/sqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use rand::{distributions::Alphanumeric, thread_rng, Rng};
use serde::Deserialize;
use tokio::time::Duration;
use tower::ServiceBuilder;
use tracing::{error, info};
use tracing::{debug, error, info};

use crate::signals::Shutdown;

Expand Down Expand Up @@ -259,7 +259,7 @@ async fn srv(
.unwrap())
}
action => {
println!("Unknown action: {action:?}");
debug!("Unknown action: {action:?}");
Ok(Response::builder()
.status(StatusCode::NOT_IMPLEMENTED)
.body(Body::from(vec![]))
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#![deny(clippy::all)]
#![deny(clippy::cargo)]
#![deny(clippy::pedantic)]
#![deny(clippy::print_stdout)]
#![deny(clippy::print_stderr)]
#![deny(clippy::dbg_macro)]
#![deny(unused_extern_crates)]
#![deny(unused_allocation)]
#![deny(unused_assignments)]
Expand Down

0 comments on commit 51519ac

Please sign in to comment.