diff --git a/Cargo.toml b/Cargo.toml index 9131e94d..9ed6f6c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ only_i32 = [] # set INT=i32 (useful for 32-bit systems) only_i64 = [] # set INT=i64 (default) and disable support for all other integer types no_index = [] # no arrays and indexing no_object = [] # no custom objects -no_function = [ "no_closure "] # no script-defined functions (meaning no closures) +no_function = [ "no_closure" ] # no script-defined functions (meaning no closures) no_closure = [] # no automatic sharing and capture of anonymous functions to external variables no_module = [] # no modules internals = [] # expose internal data structures diff --git a/src/fn_call.rs b/src/fn_call.rs index 2c94a47e..08088443 100644 --- a/src/fn_call.rs +++ b/src/fn_call.rs @@ -228,9 +228,9 @@ impl Engine { // Run external function let result = if func.is_plugin_fn() { - func.get_plugin_fn().call(args, Position::none())? + func.get_plugin_fn().call(args, Position::none()) } else { - func.get_native_fn()(self, lib, args)? + func.get_native_fn()(self, lib, args) }; // Restore the original reference