size_of and align_of are part of the prelude nowadays

This commit is contained in:
bjorn3
2026-04-06 15:19:52 +02:00
committed by Jeremy Soller
parent 2e784dfe46
commit 654ee6ca3e
42 changed files with 137 additions and 166 deletions
+1 -1
View File
@@ -128,5 +128,5 @@ impl Display for LogicalCpuSet {
pub type RawMask = [usize; SET_WORDS];
pub fn mask_as_bytes(mask: &RawMask) -> &[u8] {
unsafe { core::slice::from_raw_parts(mask.as_ptr().cast(), core::mem::size_of::<RawMask>()) }
unsafe { core::slice::from_raw_parts(mask.as_ptr().cast(), size_of::<RawMask>()) }
}