Skip to content

Conversation

@Shnatsel
Copy link
Contributor

mem::uninitialized is getting deprecated because it's impossible to use it safely in generic code.

On the other hand, take_mut has been reviewed by the Unsafe Code Guidelines WG and has been found to be sound.

@codecov-io
Copy link

Codecov Report

Merging #37 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   91.46%   91.46%           
=======================================
  Files          14       14           
  Lines        1301     1301           
=======================================
  Hits         1190     1190           
  Misses        111      111
Impacted Files Coverage Δ
src/lib.rs 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2971a4...ffeff7c. Read the comment docs.

@Shnatsel
Copy link
Contributor Author

FWIW this borrow-checks but I have not tested this

Copy link
Owner

@sile sile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

mem::uninitialized is getting deprecated because it's impossible to use it safely in generic code.

I see. Thank you for letting me know.

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.

3 participants