chore: fix ci failures
This commit is contained in:
@@ -256,7 +256,7 @@ pub trait LocalWake {
|
|||||||
/// waker, it should override this method. By default, it clones the
|
/// waker, it should override this method. By default, it clones the
|
||||||
/// [`Rc`] and calls [`wake`] on the clone.
|
/// [`Rc`] and calls [`wake`] on the clone.
|
||||||
///
|
///
|
||||||
/// [`wake`]: Rc::wake
|
/// [`wake`]: LocalWaker::wake
|
||||||
#[unstable(feature = "local_waker", issue = "118959")]
|
#[unstable(feature = "local_waker", issue = "118959")]
|
||||||
fn wake_by_ref(self: &Rc<Self>) {
|
fn wake_by_ref(self: &Rc<Self>) {
|
||||||
self.clone().wake();
|
self.clone().wake();
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ impl fmt::Debug for Context<'_> {
|
|||||||
/// #![feature(noop_waker)]
|
/// #![feature(noop_waker)]
|
||||||
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
|
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
|
||||||
/// use std::future::Future;
|
/// use std::future::Future;
|
||||||
///
|
///
|
||||||
/// let local_waker = LocalWaker::noop();
|
/// let local_waker = LocalWaker::noop();
|
||||||
/// let waker = Waker::noop();
|
/// let waker = Waker::noop();
|
||||||
///
|
///
|
||||||
@@ -347,7 +347,7 @@ impl<'a> ContextBuilder<'a> {
|
|||||||
/// use std::task::{Waker, ContextBuilder};
|
/// use std::task::{Waker, ContextBuilder};
|
||||||
/// use std::future::{poll_fn, Future};
|
/// use std::future::{poll_fn, Future};
|
||||||
/// use std::pin::pin;
|
/// use std::pin::pin;
|
||||||
///
|
///
|
||||||
/// async fn with_waker<F>(f: F, waker: &Waker) -> F::Output
|
/// async fn with_waker<F>(f: F, waker: &Waker) -> F::Output
|
||||||
/// where
|
/// where
|
||||||
/// F: Future
|
/// F: Future
|
||||||
@@ -365,7 +365,7 @@ impl<'a> ContextBuilder<'a> {
|
|||||||
/// f.as_mut().poll(&mut cx)
|
/// f.as_mut().poll(&mut cx)
|
||||||
/// }).await
|
/// }).await
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// # async fn __() {
|
/// # async fn __() {
|
||||||
/// with_waker(async { /* ... */ }, &Waker::noop()).await;
|
/// with_waker(async { /* ... */ }, &Waker::noop()).await;
|
||||||
/// # }
|
/// # }
|
||||||
|
|||||||
Reference in New Issue
Block a user