Skip to content

Commit

Permalink
Fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jun 28, 2022
1 parent 101321d commit 92b7eb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/api/src/sys/externals/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,10 @@ where
{
// This function wraps our func, to make it compatible with the
// reverse trampoline signature
unsafe extern "C" fn func_wrapper(this: &VMDynamicFunctionContext<Self>, values_vec: *mut RawValue) {
unsafe extern "C" fn func_wrapper(
this: &VMDynamicFunctionContext<Self>,
values_vec: *mut RawValue,
) {
use std::panic::{self, AssertUnwindSafe};
let result =
on_host_stack(|| panic::catch_unwind(AssertUnwindSafe(|| (this.ctx.func)(values_vec))));
Expand Down

0 comments on commit 92b7eb4

Please sign in to comment.