mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 18:43:52 +01:00
chore: suppress unused_qualifications for wgpu_core::id const. assertions (#6295)
This commit is contained in:
1 parent
f942ceef9b
commit
0d339fc9f1
1 file changed
+4
-3
+4
-3
@@ -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!()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user