diff --git a/src/templater.rs b/src/templater.rs
index d6c723c95..51c66c90b 100644
--- a/src/templater.rs
+++ b/src/templater.rs
@@ -441,15 +441,12 @@ pub struct TemplateFunction
{
}
impl
TemplateFunction
{
- pub fn new(template: P, function: F) -> Self
+ pub fn new(property: P, function: F) -> Self
where
P: TemplateProperty,
F: Fn(P::Output) -> O,
{
- TemplateFunction {
- property: template,
- function,
- }
+ TemplateFunction { property, function }
}
}