From 2f88757efebf52cb1c4f3bea76e00e8cfcf1ef4b Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 21 Oct 2022 19:02:40 +0800 Subject: [PATCH] Fix builds. --- src/optimizer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optimizer.rs b/src/optimizer.rs index 42e9dd90..bd51a7c4 100644 --- a/src/optimizer.rs +++ b/src/optimizer.rs @@ -1189,7 +1189,7 @@ fn optimize_expr(expr: &mut Expr, state: &mut OptimizerState, _chaining: bool) { #[cfg(not(feature = "no_function"))] let lib = state.lib; #[cfg(feature = "no_function")] - let lib = &[]; + let lib = &[][..]; let context = (state.engine, x.name.as_str(), lib).into(); let (first, second) = arg_values.split_first_mut().unwrap();