Fix builds.

This commit is contained in:
Stephen Chung
2021-11-07 18:25:32 +08:00
parent 68c0ee08c0
commit 71ad158b6a
2 changed files with 35 additions and 37 deletions

View File

@@ -2059,7 +2059,7 @@ impl Engine {
.collect();
#[cfg(feature = "no_function")]
let lib = StaticVec::new();
let lib = crate::StaticVec::new();
let stmt = std::mem::take(ast.statements_mut());
crate::optimize::optimize_into_ast(self, scope, stmt, lib, optimization_level)