pollster icon indicating copy to clipboard operation
pollster copied to clipboard

Replace unsafe `std::pin::Pin::new_unchecked` with `std::pin::pin!`

Open tokarevart opened this issue 1 year ago • 1 comments

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.

tokarevart avatar Mar 26 '23 06:03 tokarevart

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.

zesterer avatar Mar 26 '23 12:03 zesterer