templater: remove unneeded trait bound from build_lambda_expression()

This function just passes P down to the build_body() callback transparently.
This commit is contained in:
Yuya Nishihara 2025-05-02 16:52:20 +09:00
parent deb4f1ba79
commit 577a484d1d

View File

@ -1419,7 +1419,7 @@ where
/// Builds lambda expression to be evaluated with the provided arguments.
/// `arg_fns` is usually an array of wrapped [`PropertyPlaceholder`]s.
fn build_lambda_expression<'a, 'i, P: IntoTemplateProperty<'a>, T>(
fn build_lambda_expression<'i, P, T>(
build_ctx: &BuildContext<'i, P>,
lambda: &LambdaNode<'i>,
arg_fns: &[&'i dyn Fn() -> P],