This commit is contained in:
Stephen Chung
2022-07-20 21:09:03 +08:00
18 changed files with 42 additions and 47 deletions

View File

@@ -151,7 +151,7 @@ impl<'a> OptimizerState<'a> {
&mut self.caches,
lib,
fn_name,
calc_fn_hash(&fn_name, arg_values.len()),
calc_fn_hash(fn_name, arg_values.len()),
&mut arg_values.iter_mut().collect::<StaticVec<_>>(),
false,
false,
@@ -1421,7 +1421,7 @@ pub fn optimize_into_ast(
OptimizationLevel::Simple | OptimizationLevel::Full => optimize_top_level(
statements,
engine,
&scope,
scope,
#[cfg(not(feature = "no_function"))]
&[&lib],
optimization_level,