Skip to content

Commit 2384d0c

Browse files
committed
Address copilot review
1 parent e08b9b5 commit 2384d0c

File tree

1 file changed

+0
-3
lines changed
  • gix-features/src/zlib/stream/deflate

1 file changed

+0
-3
lines changed

gix-features/src/zlib/stream/deflate/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ impl Compress {
6666
FlushCompress::Finish => zlib_rs::DeflateFlush::Finish,
6767
};
6868
let status = self.0.compress(input, output, flush)?;
69-
// Note: zlib_rs::deflate::deflate is a safe function (unlike inflate which is unsafe)
70-
// because deflate doesn't have the same safety concerns as inflate regarding output buffer handling
7169
match status {
7270
zlib_rs::Status::Ok => Ok(Status::Ok),
7371
zlib_rs::Status::BufError => Ok(Status::BufError),
@@ -78,7 +76,6 @@ impl Compress {
7876

7977
/// The error produced by [`Compress::compress()`].
8078
#[derive(Debug, thiserror::Error)]
81-
#[error("{msg}")]
8279
#[allow(missing_docs)]
8380
pub enum CompressError {
8481
#[error("stream error")]

0 commit comments

Comments
 (0)