From 92b7eb458a6434e351e45924cf10ff986ab5c757 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 28 Jun 2022 15:03:21 +0200 Subject: [PATCH] Fixed linter --- lib/api/src/sys/externals/function.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/api/src/sys/externals/function.rs b/lib/api/src/sys/externals/function.rs index da7e7f63732..cdb0d0ad641 100644 --- a/lib/api/src/sys/externals/function.rs +++ b/lib/api/src/sys/externals/function.rs @@ -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, values_vec: *mut RawValue) { + unsafe extern "C" fn func_wrapper( + this: &VMDynamicFunctionContext, + values_vec: *mut RawValue, + ) { use std::panic::{self, AssertUnwindSafe}; let result = on_host_stack(|| panic::catch_unwind(AssertUnwindSafe(|| (this.ctx.func)(values_vec))));