diff --git a/engine/baml-lib/baml-core/src/ir/jinja_helpers.rs b/engine/baml-lib/baml-core/src/ir/jinja_helpers.rs index f8aa0063d..56a46b7d1 100644 --- a/engine/baml-lib/baml-core/src/ir/jinja_helpers.rs +++ b/engine/baml-lib/baml-core/src/ir/jinja_helpers.rs @@ -67,9 +67,7 @@ pub fn evaluate_predicate( predicate_expression: &JinjaExpression, ) -> Result { let ctx: HashMap = - [("this".to_string(), minijinja::Value::from_serialize(this))] - .into_iter() - .collect(); + HashMap::from([("this".to_string(), minijinja::Value::from_serialize(this))]); match render_expression(&predicate_expression, &ctx)?.as_ref() { "true" => Ok(true), "false" => Ok(false),