Skip to content

Make all extension traits unnamed in the prelude #1662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions futures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,26 @@ pub mod prelude {
//!
//! The prelude may grow over time as additional items see ubiquitous use.

pub use crate::future::{self, Future, TryFuture, FutureExt, TryFutureExt};
pub use crate::stream::{self, Stream, TryStream, StreamExt, TryStreamExt};
pub use crate::sink::{self, Sink, SinkExt};
pub use crate::future::{self, Future, TryFuture};
pub use crate::stream::{self, Stream, TryStream};
pub use crate::sink::{self, Sink};

#[doc(no_inline)]
pub use crate::future::{FutureExt as _, TryFutureExt as _};
#[doc(no_inline)]
pub use crate::stream::{StreamExt as _, TryStreamExt as _};
#[doc(no_inline)]
pub use crate::sink::SinkExt as _;

#[cfg(feature = "std")]
pub use crate::io::{
AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead,
AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt,
};

#[cfg(feature = "std")]
#[doc(no_inline)]
pub use crate::io::{
AsyncReadExt as _, AsyncWriteExt as _, AsyncSeekExt as _, AsyncBufReadExt as _,
};
}

Expand Down