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 { #[cfg(not(feature = "no_function"))]
fn from(info: crate::ScriptFnMetadata) -> Self { impl From<crate::ast::ScriptFnMetadata<'_>> for FnMetadata {
fn from(info: crate::ast::ScriptFnMetadata) -> Self {
Self { Self {
namespace: FnNamespace::Global, namespace: FnNamespace::Global,
access: info.access.into(), access: info.access.into(),