image-rs / deflate-rs

An implementation of a DEFLATE encoder in rust
Apache License 2.0
53 stars 14 forks source link

Remove use of deprecated mem::uninitialized #29

Closed oyvindln closed 5 years ago

oyvindln commented 5 years ago

deprecated

Either use maybeuninit, or see if the current compiler avoids the excessive stack copies so we can avoid unsafe alltogether.

The current usage should be safe, as it's used with a copy type that does not have invalid values, though as stated in the deprecation blog, mem::uninitialized may actually never be completely safe.

oyvindln commented 5 years ago

Fixed in 029d28141c2b604b4ae1132041c9fb8e12d4bb15