index : gitrs
A lightweight web interface for browsing Git repositories, implemented in Rust
about summary refs log tree commit diff

Diffstat (limited to 'src/routes/git.rs')

-rw-r--r-- src/routes/git.rs 6
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/routes/git.rs b/src/routes/git.rs
index abbbbff..d94b7e4 100644
--- a/src/routes/git.rs
+++ b/src/routes/git.rs
@@ -24,7 +24,7 @@
    }

    let name = path.into_inner();
    let repo = match data.find_repo(name) {
    let repo = match data.find_repo(&name) {
        Some(r) => r,
        None => return Ok(HttpResponse::NotFound().body("Repo not found")),
    };
@@ -62,7 +62,7 @@
    body: Bytes,
) -> ActixResult<HttpResponse> {
    let name = path.into_inner();
    let repo = match data.find_repo(name) {
    let repo = match data.find_repo(&name) {
        Some(r) => r,
        None => return Ok(HttpResponse::NotFound().body("Repo not found")),
    };
@@ -77,7 +77,7 @@
    body: Bytes,
) -> ActixResult<HttpResponse> {
    let name = path.into_inner();
    let repo = match data.find_repo(name) {
    let repo = match data.find_repo(&name) {
        Some(r) => r,
        None => return Ok(HttpResponse::NotFound().body("Repo not found")),
    };