1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-11 09:49:29 +00: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.
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())
}
}