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

master
rascul 2 years ago
parent 8d50d0fd76
commit d89234ca5b

@ -9,12 +9,11 @@ use crate::WotLog;
#[post("/submit")]
pub async fn post(
payload: Multipart,
hb: web::Data<Handlebars<'_>>,
_hb: web::Data<Handlebars<'_>>,
) -> Result<HttpResponse, Error> {
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))

Loading…
Cancel
Save