Mark 'req' as used in browser service

This commit is contained in:
James 2019-11-16 05:51:42 +00:00
parent 7392e1ef91
commit f89cb19602

View File

@ -10,8 +10,8 @@ use logging::LoggingErrors;
use std::collections::HashMap; use std::collections::HashMap;
use url::form_urlencoded; use url::form_urlencoded;
pub fn handle(_service: &WebService, _req: Request) -> InternalFuture { pub fn handle(_service: &WebService, req: Request) -> InternalFuture {
Box::new(_req.body().concat2().map(move |body| { Box::new(req.body().concat2().map(move |body| {
let req = form_urlencoded::parse(body.as_ref()) let req = form_urlencoded::parse(body.as_ref())
.into_owned() .into_owned()
.collect::<HashMap<String, String>>(); .collect::<HashMap<String, String>>();