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!: add Proto trait as supertrait of {From,TryFrom,Into}Proto #424

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

benluelo
Copy link
Contributor

@benluelo benluelo commented Aug 4, 2023

{From,TryFrom,Into}Proto no longer each define an associated type Proto, instead there is a supertrait Proto and the aformentioned traits are now a bounds alias/ convenience over T: Proto + {From,TryFrom,Into}<T::Proto>.

closes #420 (nice 😎)

BREAKING CHANGE: `{From,TryFrom,Into}Proto` no longer each define an
associated type `Proto`, instead there is a supertrait `Proto` and the
aformentioned traits are now a bounds alias/ convenience over
`T: Proto + {From,TryFrom,Into}<T::Proto>`.
@benluelo benluelo merged commit 0b98331 into main Aug 5, 2023
@benluelo benluelo deleted the 420-deduplicate-proto-associated-type branch August 5, 2023 15:27
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.

Deduplicate Proto associated type in {From,TryFrom,Into}Proto
2 participants