From 5f69c8182743ff3eb5adad9546fba1e9b4d30db9 Mon Sep 17 00:00:00 2001 From: Erin Power Date: Tue, 14 Jan 2025 12:56:29 +0100 Subject: [PATCH] chore: Remove instances of dbg --- src/collections/pool.rs | 5 ++--- src/filters/compress/compressor.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/collections/pool.rs b/src/collections/pool.rs index e147d2408..8862ad362 100644 --- a/src/collections/pool.rs +++ b/src/collections/pool.rs @@ -251,8 +251,7 @@ impl std::ops::Deref for PoolBuffer { impl std::ops::DerefMut for PoolBuffer { #[inline] fn deref_mut(&mut self) -> &mut Self::Target { - dbg!(self.len()); - self.as_mut_slice(0..dbg!(self.inner.capacity())) + self.as_mut_slice(0..self.inner.capacity()) } } @@ -296,7 +295,7 @@ impl PacketMut for PoolBuffer { #[inline] fn as_mut_slice(&mut self) -> &mut [u8] { - self.as_mut_slice(0..dbg!(self.capacity())) + self.as_mut_slice(0..self.capacity()) } #[inline] diff --git a/src/filters/compress/compressor.rs b/src/filters/compress/compressor.rs index 912a413ad..11e86b32b 100644 --- a/src/filters/compress/compressor.rs +++ b/src/filters/compress/compressor.rs @@ -44,7 +44,7 @@ impl Compressor { let mut encoder = imp.encoder(); - let res = encoder.compress(input, &mut encoded.as_mut_slice()[..dbg!(size)]); + let res = encoder.compress(input, &mut encoded.as_mut_slice()[..size]); imp.absorb(encoder); encoded.set_len(res?);