Skip to content

Use size_of from prelude#37

Open
KonaeAkira wants to merge 1 commit intomicrosoft:mainfrom
KonaeAkira:prelude_size_of
Open

Use size_of from prelude#37
KonaeAkira wants to merge 1 commit intomicrosoft:mainfrom
KonaeAkira:prelude_size_of

Conversation

@KonaeAkira
Copy link
Contributor

Rust 1.80 added size_of, size_of_val, align_of, and align_of_val to the prelude.

PR replaces std::mem::size_of with size_of for conciseness.

@KonaeAkira
Copy link
Contributor Author

@microsoft-github-policy-service agree

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