We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Pin::new
pin::pin!
1 parent 134b46b commit f12c222Copy full SHA for f12c222
lightning-background-processor/src/lib.rs
@@ -555,7 +555,7 @@ pub(crate) mod futures_util {
555
type Output = ();
556
fn poll(mut self: Pin<&mut Self>, ctx: &mut core::task::Context<'_>) -> Poll<Self::Output> {
557
match self.optional_future.as_mut() {
558
- Some(f) => match core::pin::pin!(f).poll(ctx) {
+ Some(f) => match Pin::new(f).poll(ctx) {
559
Poll::Ready(()) => {
560
self.optional_future.take();
561
Poll::Ready(())
0 commit comments