-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
ErrorKind Clone #563
Comments
The new DecodeError does not implement it either - why? |
I'm assuming you mean We could implement |
I was specifically referring to DecodeError. My application reads input from a TcpStream and in case of a DecodeError I want to attach that error to the return value (which i would like to be cloneable). I dont see why both errors need to implement the same traits - imo if something can be Clone it should be. |
You could wrap the |
That is a good suggestion. I will implement it like this for now. Still, if there is no reason for why it wouldnt be |
Turns out If you want the two types mentioned above to implement Feel free to re-open this issue when the traits implements change in a stable version of rust. |
Is there a reason for ErrorKind not implementing Clone? If not, can we make that happen?
The text was updated successfully, but these errors were encountered: