mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 08:45:10 +02:00
remove Deref
This commit is contained in:
@ -92,7 +92,7 @@ impl<T: 'static, P> FromRequest<P> for Data<T> {
|
||||
|
||||
#[inline]
|
||||
fn from_request(req: &mut ServiceFromRequest<P>) -> Self::Future {
|
||||
if let Some(st) = req.config().extensions().get::<Data<T>>() {
|
||||
if let Some(st) = req.request().config().extensions().get::<Data<T>>() {
|
||||
Ok(st.clone())
|
||||
} else {
|
||||
Err(ErrorInternalServerError(
|
||||
|
Reference in New Issue
Block a user