Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: John Kastner <[email protected]>
  • Loading branch information
john-h-kastner-aws committed Nov 22, 2024
1 parent 3eaeb46 commit a0e75b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cedar-policy-core/src/ast/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a0e75b9

Please sign in to comment.