From 1f8252f42891f6165d5c2dbc43d7f8caa45f51fd Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 19 May 2024 04:06:25 +0200 Subject: [PATCH] Avoid unnecessary reference --- src/templating.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templating.rs b/src/templating.rs index 3c94dd9..19875da 100644 --- a/src/templating.rs +++ b/src/templating.rs @@ -46,7 +46,7 @@ pub(crate) fn render_text(data: Data, writer: impl Write) -> Result<()> { } fn render(template_name: &str, context: &Context, writer: impl Write) -> Result<()> { - get_tera().render_to(template_name, &context, writer)?; + get_tera().render_to(template_name, context, writer)?; Ok(()) }