From 3c4d90483ddbb2aeefb081a73cb93e2ade2a1456 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 6 Feb 2024 12:32:19 +0900 Subject: [PATCH] templater: sort catch-all arms of ExpressionKind in declaration order Perhaps this was copy-paste error. --- cli/src/template_parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/template_parser.rs b/cli/src/template_parser.rs index 61df1506d..c198ae6b5 100644 --- a/cli/src/template_parser.rs +++ b/cli/src/template_parser.rs @@ -719,10 +719,10 @@ pub fn expect_lambda_with<'a, 'i, T>( ) -> TemplateParseResult { match &node.kind { ExpressionKind::Lambda(lambda) => f(lambda, node.span), - ExpressionKind::String(_) - | ExpressionKind::Identifier(_) + ExpressionKind::Identifier(_) | ExpressionKind::Boolean(_) | ExpressionKind::Integer(_) + | ExpressionKind::String(_) | ExpressionKind::Concat(_) | ExpressionKind::FunctionCall(_) | ExpressionKind::MethodCall(_) => Err(TemplateParseError::unexpected_expression(