trifectatechfoundation / zlib-rs

A safer zlib
zlib License
147 stars 15 forks source link

follow `MaybeUninit::slice_assume_init_ref` implementation #243

Closed folkertdev closed 3 weeks ago

folkertdev commented 3 weeks ago

instead of a transmute. This is a bit safer if we ever end up changing the types (though that is unlikely)

see also https://doc.rust-lang.org/beta/src/core/mem/maybe_uninit.rs.html#979

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files with missing lines Coverage Δ
zlib-rs/src/deflate/pending.rs 97.01% <100.00%> (ø)

... and 2 files with indirect coverage changes