Skip to content

Commit f12c222

Browse files
committed
f Use Pin::new as pin::pin! is not available on 1.63
1 parent 134b46b commit f12c222

File tree

1 file changed

+1
-1
lines changed
  • lightning-background-processor/src

1 file changed

+1
-1
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ pub(crate) mod futures_util {
555555
type Output = ();
556556
fn poll(mut self: Pin<&mut Self>, ctx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
557557
match self.optional_future.as_mut() {
558-
Some(f) => match core::pin::pin!(f).poll(ctx) {
558+
Some(f) => match Pin::new(f).poll(ctx) {
559559
Poll::Ready(()) => {
560560
self.optional_future.take();
561561
Poll::Ready(())

0 commit comments

Comments
 (0)