Skip to content
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

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

thomaseizinger
Copy link
Contributor

No description provided.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Owner

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fancy!

Comment on lines +13 to +14
- Use GATs for `Encoder` trait to allow encoding of borrowed data.
See [PR 9](https://github.com/mxinden/asynchronous-codec/pull/9).
Copy link
Owner

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?

Copy link
Contributor Author

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?

Copy link
Owner

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.

Copy link
Contributor Author

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.

@thomaseizinger
Copy link
Contributor Author

Friendly ping @mxinden.

@mxinden mxinden merged commit c818a83 into mxinden:master Oct 11, 2023
8 checks passed
@mxinden
Copy link
Owner

mxinden commented Oct 11, 2023

Tagged and published. Thank you @thomaseizinger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants