mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
commit_templater: allow extension methods to capture repo
This commit is contained in:
parent
9b42c81d6f
commit
a3839cdf47
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ impl<'repo> TemplateLanguage<'repo> for CommitTemplateLanguage<'repo> {
|
||||||
// If we need to add multiple languages that support Commit types, this can be
|
// If we need to add multiple languages that support Commit types, this can be
|
||||||
// turned into a trait which extends TemplateLanguage.
|
// turned into a trait which extends TemplateLanguage.
|
||||||
impl<'repo> CommitTemplateLanguage<'repo> {
|
impl<'repo> CommitTemplateLanguage<'repo> {
|
||||||
pub fn repo(&self) -> &dyn Repo {
|
pub fn repo(&self) -> &'repo dyn Repo {
|
||||||
self.repo
|
self.repo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue