Skip to content

Commit

Permalink
chore: Remove instances of dbg (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky authored Jan 14, 2025
1 parent 146c92c commit 71682b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/collections/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/filters/compress/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?);
Expand Down

0 comments on commit 71682b2

Please sign in to comment.