diff --git a/src/serde/metadata.rs b/src/serde/metadata.rs index 6531ef39..7f4edb25 100644 --- a/src/serde/metadata.rs +++ b/src/serde/metadata.rs @@ -160,8 +160,9 @@ impl From<&crate::module::FuncInfo> for FnMetadata { } } -impl From> for FnMetadata { - fn from(info: crate::ScriptFnMetadata) -> Self { +#[cfg(not(feature = "no_function"))] +impl From> for FnMetadata { + fn from(info: crate::ast::ScriptFnMetadata) -> Self { Self { namespace: FnNamespace::Global, access: info.access.into(),