mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 156ce3e61dafa5e5582975b2559c04709e1e7a3f
parent 54d2075fc85826a4b6601f239965156aa4f9333f
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Wed, 17 Mar 2021 22:44:19 +0100

simplify code

unnecessary to specify the name twice if it is identical to the field name

Diffstat:
Msrc/main.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -229,7 +229,7 @@ async fn repo_log(req: Request<()>) -> tide::Result { let tmpl = RepoLogTemplate { repo: &repo, commits, - branch: branch, + branch, }; Ok(tmpl.into()) } @@ -293,7 +293,7 @@ async fn repo_tree(req: Request<()>) -> tide::Result { let tmpl = RepoTreeTemplate { repo: &repo, tree, - spec: spec, + spec, }; Ok(tmpl.into()) }