forked from mirrors/jj
templater: sort catch-all arms of ExpressionKind in declaration order
Perhaps this was copy-paste error.
This commit is contained in:
parent
12c3be70f4
commit
3c4d90483d
1 changed files with 2 additions and 2 deletions
|
@ -719,10 +719,10 @@ pub fn expect_lambda_with<'a, 'i, T>(
|
|||
) -> TemplateParseResult<T> {
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue