mirror of https://github.com/fafhrd91/actix-web
use associated type for QueryConfig
This commit is contained in:
parent
938c4e28dc
commit
52175d114b
|
@ -124,7 +124,7 @@ where
|
|||
#[inline]
|
||||
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
|
||||
let error_handler = req
|
||||
.app_data::<QueryConfig>()
|
||||
.app_data::<Self::Config>()
|
||||
.map(|c| c.ehandler.clone())
|
||||
.unwrap_or(None);
|
||||
|
||||
|
|
Loading…
Reference in New Issue