mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
chore: s/allow/expect for clippy::collapsible_if (#8425)
This commit is contained in:
parent
a360732bb3
commit
e65468ec6a
@ -816,7 +816,7 @@ impl Buffer {
|
|||||||
range,
|
range,
|
||||||
host,
|
host,
|
||||||
} => {
|
} => {
|
||||||
#[allow(clippy::collapsible_if)]
|
#[cfg_attr(not(feature = "trace"), expect(clippy::collapsible_if))]
|
||||||
if host == HostMap::Write {
|
if host == HostMap::Write {
|
||||||
#[cfg(feature = "trace")]
|
#[cfg(feature = "trace")]
|
||||||
if let Some(ref mut trace) = *device.trace.lock() {
|
if let Some(ref mut trace) = *device.trace.lock() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user