diff --git a/src/client.rs b/src/client.rs index 8ca8a81..151bf7b 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1100,7 +1100,7 @@ impl Client { face: p.face, cursor_pos: p.cursor_pos, head_inside_block: p.head_inside_block, - sequence: dbg!(p.sequence), + sequence: p.sequence, }), C2sPlayPacket::UseItem(_) => {} } diff --git a/src/lib.rs b/src/lib.rs index 243ae6e..fb73d9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,6 +86,7 @@ clippy::unusual_byte_groupings, clippy::comparison_chain )] +#![deny(clippy::dbg_macro)] /// Used on [`Config`](config::Config) to allow for async methods in traits. /// diff --git a/src/spatial_index.rs b/src/spatial_index.rs index f44b88a..2d85d6a 100644 --- a/src/spatial_index.rs +++ b/src/spatial_index.rs @@ -31,7 +31,7 @@ impl SpatialIndex { /// This is for tests only! Not part of the public API. #[doc(hidden)] pub fn test_new() -> Self { - dbg!("Don't call me from outside tests!"); + eprintln!("Don't call me from outside tests!"); Self::new() }