chore: suppress unused_qualifications for wgpu_core::id const. assertions (#6295)

This commit is contained in:
Erich Gubler 2024-09-18 15:48:04 -04:00 committed by GitHub
parent f942ceef9b
commit 0d339fc9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,22 +4,23 @@ use std::{
fmt::{self, Debug}, fmt::{self, Debug},
hash::Hash, hash::Hash,
marker::PhantomData, marker::PhantomData,
mem::size_of,
num::NonZeroU64, num::NonZeroU64,
}; };
use wgt::WasmNotSendSync; use wgt::WasmNotSendSync;
const _: () = { const _: () = {
if std::mem::size_of::<Index>() != 4 { if size_of::<Index>() != 4 {
panic!() panic!()
} }
}; };
const _: () = { const _: () = {
if std::mem::size_of::<Epoch>() != 4 { if size_of::<Epoch>() != 4 {
panic!() panic!()
} }
}; };
const _: () = { const _: () = {
if std::mem::size_of::<RawId>() != 8 { if size_of::<RawId>() != 8 {
panic!() panic!()
} }
}; };