Make some new functions const.

This commit is contained in:
Stephen Chung
2021-11-25 17:09:00 +08:00
parent fc472f641b
commit 280b5b405e
14 changed files with 58 additions and 50 deletions

View File

@@ -90,7 +90,7 @@ impl Engine {
.collect();
#[cfg(feature = "no_function")]
let lib = crate::StaticVec::new();
let lib = crate::StaticVec::new_const();
let statements = std::mem::take(ast.statements_mut());