diff --git a/wgpu-core/src/id.rs b/wgpu-core/src/id.rs index 76ea8e333..4e4897c83 100644 --- a/wgpu-core/src/id.rs +++ b/wgpu-core/src/id.rs @@ -4,22 +4,23 @@ use std::{ fmt::{self, Debug}, hash::Hash, marker::PhantomData, + mem::size_of, num::NonZeroU64, }; use wgt::WasmNotSendSync; const _: () = { - if std::mem::size_of::() != 4 { + if size_of::() != 4 { panic!() } }; const _: () = { - if std::mem::size_of::() != 4 { + if size_of::() != 4 { panic!() } }; const _: () = { - if std::mem::size_of::() != 8 { + if size_of::() != 8 { panic!() } };