ByteBaker commented on issue #6282:
URL: https://github.com/apache/arrow-rs/issues/6282#issuecomment-2367173293
It seems flate2 documentation is wrong.
```rust
/// Returns an integer representing the compression level, typically on a
/// scale of 0-9
pub fn level(&self) -> u32 {
self.0
}
```
But internally, inside `DeflateBackend::make` they have
`debug_assert!(level.level() <= 10);`. Using compression level up to 10 works
fine but panics for bigger values.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]