From b0f9713a7e2b8b01592edbcf6faf8e45c269f3da 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 28556e96ee..9e1413f8d4 100644 --- a/wgpu-hal/src/dx12/mod.rs +++ b/wgpu-hal/src/dx12/mod.rs @@ -621,7 +621,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 {