mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[validate] Fix compiler warning
This commit is contained in:
committed by
João Capucho
parent
abc4e1572a
commit
0f26e5c808
@@ -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