mirror of https://github.com/fafhrd91/actix-web
use associated type inside JsonConfig
This commit is contained in:
parent
98266438ac
commit
af92ed2817
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue