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

Nonallocating ConnectionEnd::versions method #1889

Merged

Conversation

seanchen1991
Copy link
Contributor

Closes: cosmos/ibc-rs#55

Description

Changes ConnectionEnd::versions to be non-allocating by having it return a &[Version] instead of a Vec<Version>.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@romac romac changed the title Nonallocating versions method Nonallocating ConnectionEnd::versions method Feb 17, 2022
@romac romac merged commit fd84737 into informalsystems:master Feb 17, 2022
@seanchen1991 seanchen1991 deleted the nonallocating-versions-method branch February 17, 2022 18:01
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
* Make `ConnectionEnd::versions` non-allocating.

* Elide lifetimes

* Add changelog entry.
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