Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follow MaybeUninit::slice_assume_init_ref implementation #243

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

folkertdev
Copy link
Collaborator

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

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

... and 2 files with indirect coverage changes

@folkertdev folkertdev merged commit b7eae62 into main Nov 4, 2024
18 checks passed
@folkertdev folkertdev deleted the transmute-slice branch November 4, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant