Skip to content

Use size_of from prelude#37

Merged
atulkhare4096 merged 1 commit intomicrosoft:mainfrom
KonaeAkira:prelude_size_of
Mar 27, 2026
Merged

Use size_of from prelude#37
atulkhare4096 merged 1 commit intomicrosoft:mainfrom
KonaeAkira:prelude_size_of

Conversation

@KonaeAkira
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@atulkhare4096 atulkhare4096 merged commit 68bad3f into microsoft:main Mar 27, 2026
1 check passed
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.

2 participants