Skip to content

Commit

Permalink
Prefer doc(no_inline) to doc(hidden) for reexports
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 committed Aug 21, 2021
1 parent 62d5aa5 commit 8b339b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions futures-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
extern crate alloc;

pub mod future;
#[doc(hidden)]
#[doc(no_inline)]
pub use self::future::{FusedFuture, Future, TryFuture};

pub mod stream;
#[doc(hidden)]
#[doc(no_inline)]
pub use self::stream::{FusedStream, Stream, TryStream};

#[macro_use]
Expand Down
8 changes: 4 additions & 4 deletions futures-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,18 +301,18 @@ macro_rules! delegate_all {
}

pub mod future;
#[doc(hidden)]
#[doc(no_inline)]
pub use crate::future::{Future, FutureExt, TryFuture, TryFutureExt};

pub mod stream;
#[doc(hidden)]
#[doc(no_inline)]
pub use crate::stream::{Stream, StreamExt, TryStream, TryStreamExt};

#[cfg(feature = "sink")]
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
pub mod sink;
#[cfg(feature = "sink")]
#[doc(hidden)]
#[doc(no_inline)]
pub use crate::sink::{Sink, SinkExt};

pub mod task;
Expand All @@ -327,7 +327,7 @@ pub mod compat;
pub mod io;
#[cfg(feature = "io")]
#[cfg(feature = "std")]
#[doc(hidden)]
#[doc(no_inline)]
pub use crate::io::{
AsyncBufRead, AsyncBufReadExt, AsyncRead, AsyncReadExt, AsyncSeek, AsyncSeekExt, AsyncWrite,
AsyncWriteExt,
Expand Down

0 comments on commit 8b339b9

Please sign in to comment.