Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Mar 14, 2024
1 parent 58c1b28 commit 2f6defc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/future/futures_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ pub trait FutureExt: Future {
/// # Example
///
/// ```
/// # #[cfg(miri)]fn main() {}
/// # #[cfg(not(miri))]
/// # fn main() {
/// use async_io::Timer;
/// use futures_concurrency::prelude::*;
/// use futures_lite::future::block_on;
Expand All @@ -46,6 +49,7 @@ pub trait FutureExt: Future {
///
/// assert!(now.elapsed() >= duration);
/// });
/// # }
/// ```
fn wait_until<D>(self, deadline: D) -> WaitUntil<Self, D::IntoFuture>
where
Expand Down
4 changes: 4 additions & 0 deletions src/stream/stream_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ pub trait StreamExt: Stream {
///
/// # Example
/// ```
/// # #[cfg(miri)] fn main() {}
/// # #[cfg(not(miri))]
/// # fn main() {
/// use async_io::Timer;
/// use futures_concurrency::prelude::*;
/// use futures_lite::{future::block_on, stream};
Expand All @@ -51,6 +54,7 @@ pub trait StreamExt: Stream {
///
/// assert!(now.elapsed() >= duration);
/// });
/// # }
/// ```
fn wait_until<D>(self, deadline: D) -> WaitUntil<Self, D::IntoFuture>
where
Expand Down
2 changes: 1 addition & 1 deletion src/stream/wait_until.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where

match this.state {
State::Timer => match this.deadline.poll(cx) {
Poll::Pending => return Poll::Pending,
Poll::Pending => Poll::Pending,
Poll::Ready(_) => {
*this.state = State::Streaming;
this.stream.poll_next(cx)
Expand Down

0 comments on commit 2f6defc

Please sign in to comment.