Fix feature builds.

This commit is contained in:
Stephen Chung
2021-03-14 10:47:21 +08:00
parent 4e3fdf6dab
commit 008ef0a41b
2 changed files with 12 additions and 6 deletions

View File

@@ -607,6 +607,7 @@ impl Engine {
}
// Does a scripted function exist?
#[cfg(not(feature = "no_function"))]
#[inline(always)]
pub(crate) fn has_script_fn(
&self,
@@ -734,6 +735,7 @@ impl Engine {
}
// Scripted function call?
#[cfg(not(feature = "no_function"))]
let hash_script = if hash.is_native_only() {
None
} else {