chore(api) Allow complex types.

This commit is contained in:
Ivan Enderlin
2020-06-09 15:47:27 +02:00
parent 5c7cb75458
commit e975925cf2
2 changed files with 3 additions and 0 deletions

View File

@@ -313,6 +313,7 @@ trait VMDynamicFunction {
}
struct VMDynamicFunctionWithoutEnv {
#[allow(clippy::type_complexity)]
func: Box<dyn Fn(&[Val]) -> Result<Vec<Val>, RuntimeError> + 'static>,
function_type: FunctionType,
}
@@ -330,6 +331,7 @@ struct VMDynamicFunctionWithEnv<Env>
where
Env: Sized,
{
#[allow(clippy::type_complexity)]
func: Box<dyn Fn(&mut Env, &[Val]) -> Result<Vec<Val>, RuntimeError> + 'static>,
env: *mut Env,
function_type: FunctionType,