Skip to content

Commit

Permalink
rename binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Dec 3, 2023
1 parent 9778667 commit 97a93ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wasmi/src/module/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,14 @@ impl<'engine> ModuleParser<'engine> {
///
/// If the function body fails to validate.
fn process_code_entry(&mut self, func_body: FunctionBody) -> Result<(), ModuleError> {
let (func, compiled_func_2) = self.next_func();
let (func, compiled_func) = self.next_func();
let validator = self.validator.code_section_entry(&func_body)?;
let module_resources = ModuleResources::new(&self.builder);
let dummy_allocations = ReusableAllocations::default();
let allocations = replace(&mut self.allocations, dummy_allocations);
let allocations = translate(
func,
compiled_func_2,
compiled_func,
func_body,
validator.into_validator(allocations.validation),
module_resources,
Expand Down

0 comments on commit 97a93ca

Please sign in to comment.