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

add merge2 to busan::message::Message #65

Merged
merged 1 commit into from
May 19, 2023
Merged

add merge2 to busan::message::Message #65

merged 1 commit into from
May 19, 2023

Conversation

JohnMurray
Copy link
Owner

Summary

Add merge2 to Message which is a wrapper to prost::Message::merge. Added as an undocumented (hidden) method on Message that is primarily an implementation detail internal to busan.

Motivation

The Message::merge function from prost requires that self be Sized. merge2 allows us to call the merge function through dynamic dispatch by implementing merge2 on the object and not in the trait.

Test Plan

It compiles. Usages will come later for further testing/refinement.

@JohnMurray JohnMurray merged commit f201e9e into main May 19, 2023
4 checks passed
@JohnMurray JohnMurray deleted the merge2 branch May 19, 2023 17:54
@JohnMurray JohnMurray mentioned this pull request May 19, 2023
6 tasks
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

1 participant