Skip to content
New issue

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

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

Already on GitHub? # to your account

Replace transmutes with pointer casts (#52) #57

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

adeschamps
Copy link
Contributor

Here's an option to get rid of the transmutes, based on the alternatives section of the docs. We cast a reference to a pointer, then cast to a different pointer type, and then use unsafe to cast that pointer back to a reference.

Copy link
Owner

@paholg paholg left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good.

@paholg paholg merged commit 4e3ff75 into paholg:master Aug 15, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants