From: Johann150 <
johann@qwertqwefsday.eu>
unnecessary to specify the name twice if it is identical to the field name
---
src/main.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 5f2c741..754a0c6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -225,7 +225,7 @@ async fn repo_log(req: Request<()>) -> tide::Result {
let tmpl = RepoLogTemplate {
repo: &repo,
commits,
- branch: branch,
+ branch,
};
Ok(tmpl.into())
}
@@ -289,7 +289,7 @@ async fn repo_tree(req: Request<()>) -> tide::Result {
let tmpl = RepoTreeTemplate {
repo: &repo,
tree,
- spec: spec,
+ spec,
};
Ok(tmpl.into())
}
--
2.20.1