chore: s/allow/expect for clippy::collapsible_if (#8425)

This commit is contained in:
Erich Gubler 2025-10-23 18:34:41 -04:00 committed by GitHub
parent a360732bb3
commit e65468ec6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() {