Skip to content

refactor: use &raw const instead of core::ptr::addr_of#654

Open
carlocorradini wants to merge 1 commit intosharksforarms:masterfrom
carlocorradini:addr_of
Open

refactor: use &raw const instead of core::ptr::addr_of#654
carlocorradini wants to merge 1 commit intosharksforarms:masterfrom
carlocorradini:addr_of

Conversation

@carlocorradini
Copy link
Copy Markdown
Contributor

From core::ptr::addr_of docs:

addr_of!(expr) is equivalent to &raw const expr. The macro is soft-deprecated; use &raw const instead.

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