Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

use size_of from the prelude instead of std::mem::size_of #937

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

cyrgani
Copy link
Contributor

@cyrgani cyrgani commented Apr 5, 2025

size_of is already a part of the prelude since rust-lang/rust#123168 (1.80.0). Since we do not support versions this old anyway, the std::mem:: prefixes can simply be removed.

@not-fl3 not-fl3 merged commit f72d93c into not-fl3:master Apr 5, 2025
6 checks passed
@cyrgani cyrgani deleted the prelude-size-of branch April 5, 2025 20:21
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