diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index 01faab03228..38fde6842d3 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -555,7 +555,7 @@ pub(crate) mod futures_util { type Output = (); fn poll(mut self: Pin<&mut Self>, ctx: &mut core::task::Context<'_>) -> Poll { 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(())