Skip to content

Commit 0b0eb02

Browse files
committed
fix CI
1 parent bdb873a commit 0b0eb02

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/future/futures_ext.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ pub trait FutureExt: Future {
3131
/// # Example
3232
///
3333
/// ```
34+
/// # #[cfg(miri)]fn main() {}
35+
/// # #[cfg(not(miri))]
36+
/// # fn main() {
3437
/// use async_io::Timer;
3538
/// use futures_concurrency::prelude::*;
3639
/// use futures_lite::future::block_on;
@@ -46,6 +49,7 @@ pub trait FutureExt: Future {
4649
///
4750
/// assert!(now.elapsed() >= duration);
4851
/// });
52+
/// # }
4953
/// ```
5054
fn wait_until<D>(self, deadline: D) -> WaitUntil<Self, D::IntoFuture>
5155
where

src/stream/stream_ext.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ pub trait StreamExt: Stream {
4646
///
4747
/// # Example
4848
/// ```
49+
/// # #[cfg(miri)] fn main() {}
50+
/// # #[cfg(not(miri))]
51+
/// # fn main() {
4952
/// use async_io::Timer;
5053
/// use futures_concurrency::prelude::*;
5154
/// use futures_lite::{future::block_on, stream};
@@ -63,6 +66,7 @@ pub trait StreamExt: Stream {
6366
///
6467
/// assert!(now.elapsed() >= duration);
6568
/// });
69+
/// # }
6670
/// ```
6771
fn wait_until<D>(self, deadline: D) -> WaitUntil<Self, D::IntoFuture>
6872
where

src/stream/wait_until.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ where
5151

5252
match this.state {
5353
State::Timer => match this.deadline.poll(cx) {
54-
Poll::Pending => return Poll::Pending,
54+
Poll::Pending => Poll::Pending,
5555
Poll::Ready(_) => {
5656
*this.state = State::Streaming;
5757
this.stream.poll_next(cx)

0 commit comments

Comments
 (0)