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

From instead of TryFrom for proto to prost #3592

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

nick-mobilecoin
Copy link
Collaborator

@nick-mobilecoin nick-mobilecoin commented Sep 29, 2023

Previously some conversions in mc-api that were from protobuf types to
prost types were implemented as TryFrom. Now these conversions are
implemented as From. This allows for a more ergonomic API preventing
callers from having to check for errors that really shouldn't happen in
this conversion step.

Previously some conversions in `mc-api` that were from protobuf types to
prost types were implemented as `TryFrom`. Now these conversions are
implemented as `From`. This allows for a more ergonomic API preventing
callers from having to check for errors that really shouldn't happen in
this conversion step.
@nick-mobilecoin
Copy link
Collaborator Author

nick-mobilecoin commented Sep 29, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@nick-mobilecoin
Copy link
Collaborator Author

nick-mobilecoin commented Sep 29, 2023

Merge Activity

@nick-mobilecoin nick-mobilecoin merged commit fbaba51 into master Sep 29, 2023
20 checks passed
@nick-mobilecoin nick-mobilecoin deleted the nick/prost-tryfrom-proto-to-from branch September 29, 2023 20:35
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.

2 participants