chore: fix ci failures
This commit is contained in:
@@ -269,7 +269,7 @@ impl fmt::Debug for Context<'_> {
|
||||
/// #![feature(noop_waker)]
|
||||
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
|
||||
/// use std::future::Future;
|
||||
///
|
||||
///
|
||||
/// let local_waker = LocalWaker::noop();
|
||||
/// let waker = Waker::noop();
|
||||
///
|
||||
@@ -347,7 +347,7 @@ impl<'a> ContextBuilder<'a> {
|
||||
/// use std::task::{Waker, ContextBuilder};
|
||||
/// use std::future::{poll_fn, Future};
|
||||
/// use std::pin::pin;
|
||||
///
|
||||
///
|
||||
/// async fn with_waker<F>(f: F, waker: &Waker) -> F::Output
|
||||
/// where
|
||||
/// F: Future
|
||||
@@ -365,7 +365,7 @@ impl<'a> ContextBuilder<'a> {
|
||||
/// f.as_mut().poll(&mut cx)
|
||||
/// }).await
|
||||
/// }
|
||||
///
|
||||
///
|
||||
/// # async fn __() {
|
||||
/// with_waker(async { /* ... */ }, &Waker::noop()).await;
|
||||
/// # }
|
||||
|
||||
Reference in New Issue
Block a user