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

Onion3Addr::acquire: fix bug due to differing lifetimes #1468

Merged
merged 2 commits into from
Feb 24, 2020

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Feb 24, 2020

Because the Self type is Onion3Addr<'a> and the return type uses 'b, the usage of Self as a constructor is illegal as per https://crater-reports.s3.amazonaws.com/pr-69340/try%239ff4d07208097950831ed4ea9d76feb1eafc8baa/reg/libp2p-plaintext-0.15.0/log.txt and the bug fix in rust-lang/rust#69340. This PR fixes that problem for you.

Copy link
Contributor

@twittner twittner left a comment

Choose a reason for hiding this comment

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

Thanks!

@Centril
Copy link
Contributor Author

Centril commented Feb 24, 2020

CI seems happy :)

@tomaka tomaka merged commit 4496337 into libp2p:master Feb 24, 2020
@Centril Centril deleted the patch-1 branch February 24, 2020 18:57
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.

3 participants