-
Notifications
You must be signed in to change notification settings - Fork 37
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
BinWrite requires writer to be Sized #104
Comments
I dug into this and it appears you're right. However dropping from |
@Wesmania can you provide any more information about what you were trying to do? Currently trying to decide whether or not it is worth the pain of changing this since doing so would break every existing user with a custom parser/serialiser function or manual impl of BinRead/BinWrite. |
I have a simple tool for serializing / deserializing a data format here. From what I remember this was just a convenience thing that would allow easily writing to either a file or standard output and I worked around it anyway. |
There doesn't seem to be any good reason for writer to be sized, since it's just a mutable reference. Without
?Sized
, it's impossible to use trait objects with BinWrite.The text was updated successfully, but these errors were encountered: