mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
chore: s/allow/expect for clippy::collapsible_if (#8425)
This commit is contained in:
1 parent
a360732bb3
commit
e65468ec6a
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user