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

This commit is contained in:
Erich Gubler authored and GitHub committed 2025-10-23 18:34:41 -04:00
1 parent a360732bb3
commit e65468ec6a
1 file changed
+1 -1
+1 -1
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() {