Skip to content

Commit

Permalink
Merge pull request #31 from tisonkun/patch-1
Browse files Browse the repository at this point in the history
Derive Default for CompressionMode
  • Loading branch information
pmarks authored Nov 23, 2022
2 parents efaba63 + 3236b4b commit 418855f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ pub enum CompressionMode {
DEFAULT,
}

impl Default for CompressionMode {
fn default() -> Self {
CompressionMode::DEFAULT
}
}

/// Returns the size of the buffer that is guaranteed to hold the result of
/// compressing `uncompressed_size` bytes of in data. Returns std::io::Error
/// with ErrorKind::InvalidInput if input data is too long to be compressed by lz4.
Expand Down

0 comments on commit 418855f

Please sign in to comment.