Skip to content

Commit

Permalink
Update bongonet-header-serde/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: gitworkflows <[email protected]>
  • Loading branch information
gitworkflows and coderabbitai[bot] authored Mar 8, 2025
1 parent c9195fe commit d8c35c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bongonet-header-serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ impl ZstdCompression {
match &self {
ZstdCompression::Default(c, level) => c
.compress(data, *level)
.map_err(|e| into_error(e, "decompress header")),
.map_err(|e| into_error(e, "compress header")),
ZstdCompression::WithDict(c) => c
.compress(data)
.map_err(|e| into_error(e, "decompress header")),
.map_err(|e| into_error(e, "compress header")),
}
}
}
}

fn decompress_to_buffer(&self, source: &[u8], destination: &mut Vec<u8>) -> Result<usize> {
match &self {
Expand Down

0 comments on commit d8c35c4

Please sign in to comment.