mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-29 07:59:00 +00:00
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();
|
||||
match templates.len() {
|
||||
0 => Box::new(Literal(String::new())),
|
||||
1 => Box::new(templates.pop().unwrap()),
|
||||
1 => templates.pop().unwrap(),
|
||||
_ => Box::new(ListTemplate(templates)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue