Fix build.

This commit is contained in:
Stephen Chung
2022-12-06 23:45:12 +08:00
parent 90998f4f14
commit e400b3627c
2 changed files with 12 additions and 1 deletions

View File

@@ -3884,7 +3884,7 @@ impl Engine {
return Ok(AST::new(
statements,
#[cfg(not(feature = "no_function"))]
functions.into_iter().map(|(.., v)| v).collect(),
crate::Module::from(functions.into_iter().map(|(.., v)| v)),
));
}