diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-08-24 10:54:27 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-08-24 10:54:27 +0300 |
commit | 0235721852dbddea8a306ba3be1d38a82a9fbb79 (patch) | |
tree | c7efdcaaa51ccf149b89703f5551a3af83d70b8e | |
parent | ed1276c7008b1dab96cd6b73e4b0fb62ca58bcc0 (diff) | |
download | jt2-0235721852dbddea8a306ba3be1d38a82a9fbb79.tar.gz |
chore: fix unnecessary &foo to foo
Thank you, clippy.
Sponsored-by: author
-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)), |