diff options
Diffstat (limited to 'src/template.rs')
-rw-r--r-- | src/template.rs | 6 |
1 files 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<String, JournalError> { - self.render("new_entry", &context) + self.render("new_entry", context) } pub fn new_topic(&self, context: &Context) -> Result<String, JournalError> { - self.render("new_topic", &context) + self.render("new_topic", context) } fn render(&self, name: &str, context: &Context) -> Result<String, JournalError> { - 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)), |