bitemyapp / brotli2-rs

Brotli encoders/decoers for Rust
Apache License 2.0
28 stars 13 forks source link

Add get_ref and get_mut methods to write encoder and decoder #14

Closed fafhrd91 closed 7 years ago

alexcrichton commented 7 years ago

Thanks! I believe though it's safe to remove the Option wrapper here as while the instance is valid they should never be None

fafhrd91 commented 7 years ago

ok, makes sense.

fafhrd91 commented 7 years ago

Could you create crate release with this changes. this significantly simply case when you need to write compressed/decompressed data to a BytesMut object.

alexcrichton commented 7 years ago

Sure thing, done!

fafhrd91 commented 7 years ago

Thanks!