use associated type inside JsonConfig

This commit is contained in:
daddinuz 2019-05-12 20:28:28 +02:00
parent 98266438ac
commit af92ed2817
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ where
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future {
let req2 = req.clone();
let (limit, err) = req
.app_data::<JsonConfig>()
.app_data::<Self::Config>()
.map(|c| (c.limit, c.ehandler.clone()))
.unwrap_or((32768, None));