mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-24 12:48:55 +00:00
templater: rename TemplateFunction::new() parameter for consistency
This commit is contained in:
parent
2c4856c47b
commit
bfb56614d4
1 changed files with 2 additions and 5 deletions
|
@ -441,15 +441,12 @@ pub struct TemplateFunction<P, F> {
|
|||
}
|
||||
|
||||
impl<P, F> TemplateFunction<P, F> {
|
||||
pub fn new<C, O>(template: P, function: F) -> Self
|
||||
pub fn new<C, O>(property: P, function: F) -> Self
|
||||
where
|
||||
P: TemplateProperty<C>,
|
||||
F: Fn(P::Output) -> O,
|
||||
{
|
||||
TemplateFunction {
|
||||
property: template,
|
||||
function,
|
||||
}
|
||||
TemplateFunction { property, function }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue