mirror of https://github.com/fafhrd91/actix-web
Merge branch 'master' into content-disposition-multipart
This commit is contained in:
commit
c4a0c00593
|
@ -54,7 +54,7 @@ impl Error {
|
|||
|
||||
/// Similar to `as_response_error` but downcasts.
|
||||
pub fn as_error<T: ResponseError + 'static>(&self) -> Option<&T> {
|
||||
ResponseError::downcast_ref(self.cause.as_ref())
|
||||
<dyn ResponseError>::downcast_ref(self.cause.as_ref())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue