You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gets generated into a method returning Result<ResponseValue<_>, Error<ByteStream>>. The problem happens when deserialize the response:
match response.status().as_u16(){200u16 => ResponseValue::from_response(response).await,500u16 => Err(Error::ErrorResponse(ResponseValue::stream(response))),
_ => Err(Error::UnexpectedResponse(response)),}
The from_response method has a bound to fmt::Debug on the error type, which is not implemented for ByteStream, thus failing compilation.
I worked around it by simply removing the bound, but I'm wondering if there's a better solution. I can also open a PR to fix it if this workaround is good.
The text was updated successfully, but these errors were encountered:
Hi,
I have a spec where the error message is of string type and the mime type is plaintext:
This gets generated into a method returning
Result<ResponseValue<_>, Error<ByteStream>>
. The problem happens when deserialize the response:The
from_response
method has a bound tofmt::Debug
on the error type, which is not implemented forByteStream
, thus failing compilation.I worked around it by simply removing the bound, but I'm wondering if there's a better solution. I can also open a PR to fix it if this workaround is good.
The text was updated successfully, but these errors were encountered: