working????
This commit is contained in:
@ -52,7 +52,7 @@ pub fn http_response(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
Self: Sized + Send,
|
Self: Sized + Send,
|
||||||
{
|
{
|
||||||
async fn receive(mut resp: actix_web::ClientResponse) -> Result<Self, Box<dyn std::error::Error>> {
|
async fn receive(mut resp: actix_web::ClientResponse) -> Result<Self, Box<dyn std::error::Error>> {
|
||||||
let body = resp.body().await?;
|
let body = resp.body().await?; // Bytes, sized!
|
||||||
#(#variant_arms)*
|
#(#variant_arms)*
|
||||||
Err(Box::new(std::io::Error::new(
|
Err(Box::new(std::io::Error::new(
|
||||||
std::io::ErrorKind::Other,
|
std::io::ErrorKind::Other,
|
||||||
|
Reference in New Issue
Block a user