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

This commit is contained in:
Erich Gubler authored and GitHub committed 2024-09-18 21:48:04 +02:00
1 parent f942ceef9b
commit 0d339fc9f1
1 file changed
+4 -3
+4 -3
View File
@@ -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::<Index>() != 4 {
if size_of::<Index>() != 4 {
panic!()
}
};
const _: () = {
if std::mem::size_of::<Epoch>() != 4 {
if size_of::<Epoch>() != 4 {
panic!()
}
};
const _: () = {
if std::mem::size_of::<RawId>() != 8 {
if size_of::<RawId>() != 8 {
panic!()
}
};