-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with thiserror #335
Comments
Just in case anyone is looking for a workaround for the time being, you can do #[derive(Debug, Error)]
pub enum Error {
/// Network error (surf)
#[error("Failed to make a request: {0:?}")]
Http(surf::Error),
}
impl From<surf::Error> for Error {
fn from(err: surf::Error) -> Self {
Error::Http(err)
}
} |
I'm working on this but is requires a lot of changed to http-types first so it'l be a while at least |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Then shame on the original authors. And your statement about predating |
Add |
It's the same situation with this issue: dtolnay/thiserror#118
When I use Surf with thiserror like that:
I got issue:
Can you solve this? Many thanks!
The text was updated successfully, but these errors were encountered: