From a0e75b9abafd3682af024d11a04cdb9079870635 Mon Sep 17 00:00:00 2001 From: John Kastner Date: Fri, 22 Nov 2024 16:37:50 +0000 Subject: [PATCH] fix Signed-off-by: John Kastner --- cedar-policy-core/src/ast/expr.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cedar-policy-core/src/ast/expr.rs b/cedar-policy-core/src/ast/expr.rs index a0f01296c..57e9d4f0d 100644 --- a/cedar-policy-core/src/ast/expr.rs +++ b/cedar-policy-core/src/ast/expr.rs @@ -991,8 +991,11 @@ impl From<&proto::Expr> for Expr { .as_ref() .expect("`as_ref()` for field that should exist") .as_ref(); - Expr::like(Expr::from(arg), msg.pattern.iter().map(PatternElem::from)) - .with_maybe_source_loc(source_loc) + Expr::like( + Expr::from(arg), + msg.pattern.iter().map(PatternElem::from).collect(), + ) + .with_maybe_source_loc(source_loc) } proto::expr::expr_kind::Data::Is(msg) => {