Fix no_function build.

This commit is contained in:
Stephen Chung
2020-10-05 12:09:45 +08:00
parent 4356d02828
commit 29bf790286
2 changed files with 5 additions and 2 deletions

View File

@@ -295,6 +295,7 @@ impl Module {
}
/// Get a script-defined function in the module based on name and number of parameters.
#[cfg(not(feature = "no_function"))]
pub fn get_script_fn(
&self,
name: &str,