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
the trait Debug is not implemented for cloudflare::framework::async_api::Client
It is quite annoying that I can't add #[derive(Debug)] to any structs/enums containing a Client, which could be easily fixed by adding #[derive(Debug)] before Client.
The text was updated successfully, but these errors were encountered:
This change is a bit more involved than meets the eye--one of the fields inside of the Cloudflare async client is of type reqwest::Client, which is defined inside a third party crate and contains a whole lot of other structs which also need #[derive(Debug)] annotations.
I'm thinking that we could make our own implementation of Debug for cloudflare::framework::async_api::Client. That would definitely unblock you, and from there we could either decide to leave that as the implementation or try to plumb Debug annotations through the reqwest crate and then annotate with #[derive(Debug)].
FWIW I have a feeling that option 2 will be more trouble than it's worth, given the need for PRs to a third party crate, and moreover give massive outputs containing reqwest::Client internal metadata in debug prints of the Cloudflare client.
Turns out I was wrong here--Client is perfectly capable of having a Debug annotation. I'll post a PR shortly.
the trait
Debug
is not implemented forcloudflare::framework::async_api::Client
It is quite annoying that I can't add
#[derive(Debug)]
to anystruct
s/enums
containing aClient
, which could be easily fixed by adding#[derive(Debug)]
beforeClient
.The text was updated successfully, but these errors were encountered: