forked from mirrors/jj
templater: remove redundant boxing of single template term
It was a copy-paste error.
This commit is contained in:
parent
2971c45e04
commit
62def97f58
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ fn parse_commit_template_rule<'a>(
|
||||||
.collect_vec();
|
.collect_vec();
|
||||||
match templates.len() {
|
match templates.len() {
|
||||||
0 => Box::new(Literal(String::new())),
|
0 => Box::new(Literal(String::new())),
|
||||||
1 => Box::new(templates.pop().unwrap()),
|
1 => templates.pop().unwrap(),
|
||||||
_ => Box::new(ListTemplate(templates)),
|
_ => Box::new(ListTemplate(templates)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue