Fix metadata build.

This commit is contained in:
Stephen Chung 2021-03-07 22:37:23 +08:00
parent a7ff9fb24f
commit 1c3a07fe86

View File

@ -160,8 +160,9 @@ impl From<&crate::module::FuncInfo> for FnMetadata {
}
}
impl From<crate::ScriptFnMetadata<'_>> for FnMetadata {
fn from(info: crate::ScriptFnMetadata) -> Self {
#[cfg(not(feature = "no_function"))]
impl From<crate::ast::ScriptFnMetadata<'_>> for FnMetadata {
fn from(info: crate::ast::ScriptFnMetadata) -> Self {
Self {
namespace: FnNamespace::Global,
access: info.access.into(),