Skip to content

Commit

Permalink
chore: suppress unused_qualifications for wgpu_core::id const. as…
Browse files Browse the repository at this point in the history
…sertions (#6295)
  • Loading branch information
ErichDonGubler authored Sep 18, 2024
1 parent f942cee commit 0d339fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wgpu-core/src/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
}
};
Expand Down

0 comments on commit 0d339fc

Please sign in to comment.