From 48eb02b8ea8528f5c0f31f5f07c81163d928aeb6 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 28 Aug 2024 15:38:07 -0400 Subject: [PATCH] chore(dx12): satisfy `clippy::manual_bits` --- wgpu-hal/src/dx12/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-hal/src/dx12/mod.rs b/wgpu-hal/src/dx12/mod.rs index e4b9e746378..e1700de8e45 100644 --- a/wgpu-hal/src/dx12/mod.rs +++ b/wgpu-hal/src/dx12/mod.rs @@ -622,7 +622,7 @@ struct PassState { #[test] fn test_dirty_mask() { - assert_eq!(MAX_ROOT_ELEMENTS, mem::size_of::() * 8); + assert_eq!(MAX_ROOT_ELEMENTS, u64::BITS as usize); } impl PassState {