Fix builds.
This commit is contained in:
parent
68c0ee08c0
commit
71ad158b6a
@ -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)
|
||||
|
@ -68,12 +68,11 @@ fn test_functions_namespaces() -> Result<(), Box<EvalAltResult>> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "no_module"))]
|
||||
#[test]
|
||||
fn test_functions_global_module() -> Result<(), Box<EvalAltResult>> {
|
||||
let mut engine = Engine::new();
|
||||
|
||||
#[cfg(not(feature = "no_module"))]
|
||||
{
|
||||
assert_eq!(
|
||||
engine.eval::<INT>(
|
||||
"
|
||||
@ -111,7 +110,6 @@ fn test_functions_global_module() -> Result<(), Box<EvalAltResult>> {
|
||||
)?,
|
||||
123
|
||||
);
|
||||
}
|
||||
|
||||
engine.register_result_fn(
|
||||
"do_stuff",
|
||||
|
Loading…
Reference in New Issue
Block a user