ok/jj
1
0
Fork 0
forked from mirrors/jj

templater: ensure "template" node is passed to parse_commit_template_rule()

Assertion will be added by the next commit.
This commit is contained in:
Yuya Nishihara 2023-01-28 20:37:49 +09:00
parent bf66beab36
commit d1281ef48e

View file

@ -298,11 +298,8 @@ fn parse_commit_term<'a>(
match name {
"label" => {
let label_pair = inner.next().unwrap();
let label_template = parse_commit_template_rule(
repo,
workspace_id,
label_pair.into_inner().next().unwrap(),
);
let label_template =
parse_commit_template_rule(repo, workspace_id, label_pair);
let arg_template = match inner.next() {
None => panic!("label() requires two arguments"),
Some(pair) => pair,