Skip to content

Commit

Permalink
f Use Pin::new as pin::pin! is not available on 1.63
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jul 19, 2024
1 parent 134b46b commit f12c222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning-background-processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ pub(crate) mod futures_util {
type Output = ();
fn poll(mut self: Pin<&mut Self>, ctx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
match self.optional_future.as_mut() {
Some(f) => match core::pin::pin!(f).poll(ctx) {
Some(f) => match Pin::new(f).poll(ctx) {
Poll::Ready(()) => {
self.optional_future.take();
Poll::Ready(())
Expand Down

0 comments on commit f12c222

Please sign in to comment.