mygit

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

commit 15ce3c41fa67bec9a2f34ef74218fa297250f989
parent 25cd5e02a09a7378e5ab84c2b2d3ecfd9fab54f1
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Sun, 18 Jul 2021 16:06:29 +0200

remove unnecessary println!s

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

diff --git a/src/main.rs b/src/main.rs @@ -123,7 +123,6 @@ async fn index(req: Request<()>) -> tide::Result { let query = query .split(";") .map(|s| { - println!("{}", s); let mut parts = s.splitn(2, "="); (parts.next().unwrap(), parts.next().unwrap()) }) @@ -620,7 +619,6 @@ async fn repo_file(req: Request<()>) -> tide::Result { http::mime::PLAIN } }); - println!("{}", mime); match mime.basetype() { "text" => unreachable!("git detected this file as binary"), "image" => format!( @@ -683,7 +681,6 @@ async fn repo_file(req: Request<()>) -> tide::Result { } async fn repo_file_raw(req: Request<()>) -> tide::Result { - println!("hey"); let repo = repo_from_request(req.param("repo_name")?)?; let spec = req.param("ref").unwrap();