From 0d339fc9f14c977e6ed9f516a111dc8205bc1958 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 18 Sep 2024 15:48:04 -0400 Subject: [PATCH] chore: suppress `unused_qualifications` for `wgpu_core::id` const. assertions (#6295) --- wgpu-core/src/id.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wgpu-core/src/id.rs b/wgpu-core/src/id.rs index 76ea8e333..4e4897c83 100644 --- a/wgpu-core/src/id.rs +++ b/wgpu-core/src/id.rs @@ -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::() != 4 { + if size_of::() != 4 { panic!() } }; const _: () = { - if std::mem::size_of::() != 4 { + if size_of::() != 4 { panic!() } }; const _: () = { - if std::mem::size_of::() != 8 { + if size_of::() != 8 { panic!() } };