From e65468ec6a873cc723d4b8c33b526861ddaf2cd2 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 23 Oct 2025 18:34:41 -0400 Subject: [PATCH] chore: s/allow/expect for `clippy::collapsible_if` (#8425) --- wgpu-core/src/resource.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/resource.rs b/wgpu-core/src/resource.rs index e15242d3f..01ac77b2b 100644 --- a/wgpu-core/src/resource.rs +++ b/wgpu-core/src/resource.rs @@ -816,7 +816,7 @@ impl Buffer { range, host, } => { - #[allow(clippy::collapsible_if)] + #[cfg_attr(not(feature = "trace"), expect(clippy::collapsible_if))] if host == HostMap::Write { #[cfg(feature = "trace")] if let Some(ref mut trace) = *device.trace.lock() {