mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
[validate] Fix compiler warning
This commit is contained in:
1 parent
abc4e1572a
commit
0f26e5c808
1 file changed
+1
-1
@@ -863,7 +863,7 @@ impl super::Validator {
|
||||
fun: &crate::Function,
|
||||
module: &crate::Module,
|
||||
mod_info: &ModuleInfo,
|
||||
entry_point: bool,
|
||||
#[cfg_attr(not(feature = "validate"), allow(unused))] entry_point: bool,
|
||||
) -> Result<FunctionInfo, WithSpan<FunctionError>> {
|
||||
#[cfg_attr(not(feature = "validate"), allow(unused_mut))]
|
||||
let mut info = mod_info.process_function(fun, module, self.flags, self.capabilities)?;
|
||||
|
||||
Reference in new issue
Block a user