Skip to content

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

Merged
not-fl3 merged 1 commit intonot-fl3:masterfrom
cyrgani:prelude-size-of
Apr 5, 2025
Merged

use size_of from the prelude instead of std::mem::size_of#937
not-fl3 merged 1 commit intonot-fl3:masterfrom
cyrgani:prelude-size-of

Conversation

@cyrgani
Copy link
Copy Markdown
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