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

Replace unsafe std::pin::Pin::new_unchecked with std::pin::pin! #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tokarevart
Copy link
Contributor

Currently to locally pin a future unsafe std::pin::Pin::new_unchecked is being used.
This PR replaces that unsafe block with std::pin::pin! macro introduced in Rust 1.68 release.

@zesterer
Copy link
Owner

Thanks! I think I'm going to avoid merging this for now in order to avoid breaking the current MSRV (I should probably come up with a hard policy on this), but perhaps in a few months when the impact is less drastic I'll merge this.

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

2 participants