Skip to content

Commit

Permalink
Avoid unnecessary reference
Browse files Browse the repository at this point in the history
  • Loading branch information
homeworkprod committed May 19, 2024
1 parent 251a81b commit 1f8252f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit 1f8252f

Please sign in to comment.