From 0235721852dbddea8a306ba3be1d38a82a9fbb79 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 24 Aug 2021 10:54:27 +0300 Subject: chore: fix unnecessary &foo to foo Thank you, clippy. Sponsored-by: author --- src/template.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/template.rs b/src/template.rs index 41d2e04..cf05ab5 100644 --- a/src/template.rs +++ b/src/template.rs @@ -33,15 +33,15 @@ impl Templates { } pub fn new_draft(&self, context: &Context) -> Result { - self.render("new_entry", &context) + self.render("new_entry", context) } pub fn new_topic(&self, context: &Context) -> Result { - self.render("new_topic", &context) + self.render("new_topic", context) } fn render(&self, name: &str, context: &Context) -> Result { - match self.tera.render(name, &context) { + match self.tera.render(name, context) { Ok(s) => Ok(s), Err(e) => match e.kind { tera::ErrorKind::TemplateNotFound(x) => Err(JournalError::TemplateNotFound(x)), -- cgit v1.2.1