1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

fix new dyn trait lint

This commit is contained in:
Rob Ede 2021-03-19 02:02:30 +00:00
parent b75b5114c3
commit 81942d31d6
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

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())
} }
} }