Skip to content

Commit a43d90e

Browse files
committed
futures-core: Remove __private module (#2440)
1 parent ad20316 commit a43d90e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

futures-core/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@ pub use self::stream::{FusedStream, Stream, TryStream};
2020

2121
#[macro_use]
2222
pub mod task;
23-
24-
// Not public API.
25-
#[doc(hidden)]
26-
pub mod __private {
27-
pub use core::task::Poll;
28-
}

futures-core/src/task/poll.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
macro_rules! ready {
66
($e:expr $(,)?) => {
77
match $e {
8-
$crate::__private::Poll::Ready(t) => t,
9-
$crate::__private::Poll::Pending => return $crate::__private::Poll::Pending,
8+
$crate::task::Poll::Ready(t) => t,
9+
$crate::task::Poll::Pending => return $crate::task::Poll::Pending,
1010
}
1111
};
1212
}

0 commit comments

Comments
 (0)