From 4465a44673a6cabf53d2ac8ff497834a3150a384 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 6 Aug 2020 10:31:32 +0800 Subject: [PATCH] Fix typos. --- Cargo.toml | 2 +- src/fn_call.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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