-
Notifications
You must be signed in to change notification settings - Fork 96
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
Get rid of BoxError #57
Comments
The reason for its use here is I didn't want to "wrap" the inner connectors errors, but instead just passing them on. |
Well, yeah, I figured. Is there a reason why you don't want to wrap the errors? |
How come it can't be converted using |
I'm using |
Submitted a PR. |
Mostly I didn't want to wrap if there was no additional context to add, since you'd need to look down the source chain one more time for |
A mechanism like rust-lang/rust#58289 resolves that issue almost entirely, and to avoid doing a |
Why use
BoxError
in theHttpsConnector
if an enum would work and won't be too complicated?In my current code, I can't just use
?
or.into
on the error cause it's notSized
, and, although I can work around it pretty easily, I see no reason why we shouldn't use enum.The text was updated successfully, but these errors were encountered: