mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
Don't warn about unused mut in tests when "validate" feature is off. (#2466)
This commit is contained in:
1 parent
a0eb1f5462
commit
cc87b8f9eb
1 file changed
+1
@@ -614,6 +614,7 @@ impl super::Validator {
|
||||
return Err(EntryPointError::UnexpectedWorkgroupSize.with_span());
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "validate"), allow(unused_mut))]
|
||||
let mut info = self
|
||||
.validate_function(&ep.function, module, mod_info, true)
|
||||
.map_err(WithSpan::into_other)?;
|
||||
|
||||
Reference in new issue
Block a user