We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc9b0c commit 5f9dc32Copy full SHA for 5f9dc32
src/ffi/miniz_oxide.rs
@@ -145,8 +145,9 @@ impl From<FlushCompress> for MZFlush {
145
146
impl DeflateBackend for Deflate {
147
fn make(level: Compression, zlib_header: bool, _window_bits: u8) -> Self {
148
- // Check in case the integer value changes at some point.
149
- debug_assert!(level.level() <= 9);
+ // Check in case the integer value changes at some point. Unlike the other zlib
+ // implementations, miniz_oxide actually has a compression level 10.
150
+ debug_assert!(level.level() <= 10);
151
152
let mut inner: Box<CompressorOxide> = Box::default();
153
let format = format_from_bool(zlib_header);
0 commit comments