mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
chore: suppress unused_qualifications
for wgpu_core::id
const. assertions (#6295)
This commit is contained in:
parent
f942ceef9b
commit
0d339fc9f1
@ -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!()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user