From d89234ca5bf7e7fc9d9ee4af4d90afb052fea37c Mon Sep 17 00:00:00 2001 From: rascul Date: Wed, 22 Jun 2022 20:37:43 -0500 Subject: [PATCH] get rid of old commented code and mark variable with _ so rustc will shut up for now until i implement the rest of the stuff --- src/routes/submit/submit_post.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/submit/submit_post.rs b/src/routes/submit/submit_post.rs index 0a574ac..301fa52 100644 --- a/src/routes/submit/submit_post.rs +++ b/src/routes/submit/submit_post.rs @@ -9,12 +9,11 @@ use crate::WotLog; #[post("/submit")] pub async fn post( payload: Multipart, - hb: web::Data>, + _hb: web::Data>, ) -> Result { let mut wotlog = WotLog::from_payload(payload).await?; wotlog.parse_log()?; - //let body = hb.render("submit", &json!({})).unwrap(); let body = format!("{}", to_string_pretty(&wotlog.json)?); Ok(HttpResponse::Ok().body(body))