From ae713eb8af90a981fa40e7f21381a7d62aac01f2 Mon Sep 17 00:00:00 2001 From: Greg Hale Date: Fri, 22 Nov 2024 10:53:35 -0800 Subject: [PATCH] tweak --- engine/baml-lib/baml-core/src/ir/jinja_helpers.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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),