From c2e564a2a6e8ba9a3b8bba39aace888695e75cda 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 be0f6960ba7..a442f793990 100644 --- a/wgpu-hal/src/dx12/mod.rs +++ b/wgpu-hal/src/dx12/mod.rs @@ -623,7 +623,7 @@ struct PassState { #[test] fn test_dirty_mask() { use std::mem::size_of; - assert_eq!(MAX_ROOT_ELEMENTS, size_of::() * 8); + assert_eq!(MAX_ROOT_ELEMENTS, (u64::BITS as usize)); } impl PassState {