Skip to content

Commit

Permalink
Fix clippy warning about map_err -> inspect_err (#1094)
Browse files Browse the repository at this point in the history
fix clippy warning about map_err -> inspect_err
  • Loading branch information
Robbepop authored Jun 30, 2024
1 parent aa007b4 commit 47add87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/wasmi/src/engine/executor/instrs/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ pub fn dispatch_host_func<T>(
let trampoline = store.resolve_trampoline(host_func.trampoline()).clone();
trampoline
.call(store, instance, params_results)
.map_err(|error| {
.inspect_err(|_error| {
// Note: We drop the values that have been temporarily added to
// the stack to act as parameter and result buffer for the
// called host function. Since the host function failed we
// need to clean up the temporary buffer values here.
// This is required for resumable calls to work properly.
value_stack.drop(max_inout);
error
})?;
Ok((len_inputs, len_outputs))
}
Expand Down

0 comments on commit 47add87

Please sign in to comment.