Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove instances of dbg #1062

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading