We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f9b4c commit c259f4fCopy full SHA for c259f4f
internal/interpreter/eval.rs
@@ -412,8 +412,7 @@ pub fn eval_expression(expression: &Expression, local_context: &mut EvalLocalCon
412
Expression::Predicate { arg_name, expression } => {
413
let arg_name = arg_name.clone();
414
let expression = expression.clone();
415
- let predicate: Rc<RefCell<dyn Fn(&mut EvalLocalContext<'_, '_>, &Value) -> Value + 'static>> =
416
- Rc::new(RefCell::new(move |local_context: &mut EvalLocalContext<'_, '_>, value: &Value| {
+ let predicate = Rc::new(RefCell::new(move |local_context: &mut EvalLocalContext<'_, '_>, value: &Value| {
417
local_context.local_variables.insert(arg_name.clone(), value.clone());
418
eval_expression(&expression, local_context)
419
}));
0 commit comments