-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: allow encoding of borrowed data #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fancy!
- Use GATs for `Encoder` trait to allow encoding of borrowed data. | ||
See [PR 9](https://github.com/mxinden/asynchronous-codec/pull/9). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of including the diff to the LengthCodec
below here to help folks upgrade to the new version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff is in the linked PR, isn't that equivalent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It reduces one step for users.I think it might safe them some time. Not a strong preference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer to just merge this to be honest :)
The compiler will also guide people to add the lifetime.
Friendly ping @mxinden. |
b3b8633
to
5abbc48
Compare
Tagged and published. Thank you @thomaseizinger. |
No description provided.