This commit is contained in:
Rob Ede 2021-06-08 14:48:08 +01:00
parent ce983d753e
commit a8d525abd6
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ impl Error {
<dyn ResponseError>::downcast_ref(self.cause.as_ref())
}
/// TODO
/// Shortcut for creating an `HttpResponse`.
pub fn error_response(&self) -> HttpResponse {
self.cause.error_response()
}
@ -49,6 +49,7 @@ impl fmt::Debug for Error {
impl StdError for Error {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
// TODO: populate if replacement for Box<dyn Error> is found
None
}
}