Skip to content

Commit 871a800

Browse files
committed
fix clone
1 parent 23db62a commit 871a800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cedar-policy-core/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ pub(crate) fn parse_literal(val: &str) -> Result<ast::Literal, err::LiteralParse
293293
return Err(err::LiteralParseError::Parse(errs));
294294
};
295295
if errs.is_empty() {
296-
match ast.clone().into_expr_kind() {
297-
ast::ExprKind::Lit(v) => Ok(v),
296+
match ast.expr_kind() {
297+
ast::ExprKind::Lit(v) => Ok(v.clone()),
298298
_ => Err(err::LiteralParseError::InvalidLiteral(ast)),
299299
}
300300
} else {

0 commit comments

Comments
 (0)