mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 17:07:01 +02:00
add associated error type to MessageBody (#2183)
This commit is contained in:
@@ -243,7 +243,11 @@ impl<B> HttpResponse<B> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<B: MessageBody> fmt::Debug for HttpResponse<B> {
|
||||
impl<B> fmt::Debug for HttpResponse<B>
|
||||
where
|
||||
B: MessageBody,
|
||||
B::Error: Into<Error>,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("HttpResponse")
|
||||
.field("error", &self.error)
|
||||
|
Reference in New Issue
Block a user