From bfb56614d441699cf21dad039967c57642b3bafd Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Thu, 26 Jan 2023 16:32:44 +0900 Subject: [PATCH] templater: rename TemplateFunction::new() parameter for consistency --- src/templater.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 } } }