Skip to content

Commit e1013d0

Browse files
chore: s/allow/expect for clippy::collapsible_if
1 parent a360732 commit e1013d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wgpu-core/src/resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ impl Buffer {
816816
range,
817817
host,
818818
} => {
819-
#[allow(clippy::collapsible_if)]
819+
#[cfg_attr(not(feature = "trace"), expect(clippy::collapsible_if))]
820820
if host == HostMap::Write {
821821
#[cfg(feature = "trace")]
822822
if let Some(ref mut trace) = *device.trace.lock() {

0 commit comments

Comments
 (0)