Merge branch 'handler-macro' of github.com:ibraheemdev/actix-web into handler-macro

This commit is contained in:
ibraheemdev 2021-03-19 11:20:24 -04:00
commit 6748a04512
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ impl Error {
/// Similar to `as_response_error` but downcasts. /// Similar to `as_response_error` but downcasts.
pub fn as_error<T: ResponseError + 'static>(&self) -> Option<&T> { 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())
} }
} }