mirror of
https://github.com/actix/actix-web.git
synced 2024-11-18 07:35:36 +00:00
fix new dyn trait lint
This commit is contained in:
parent
b75b5114c3
commit
81942d31d6
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue