Merge branch 'master' into content-disposition-multipart

This commit is contained in:
Craig Pastro 2021-03-19 14:54:13 +09:00 committed by GitHub
commit c4a0c00593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

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