docs: use #[doc(no_inline)] on re-exports (#2874)

This commit is contained in:
Taiki Endo 2020-09-24 22:59:47 +09:00 committed by GitHub
parent a0557840eb
commit c29f13b7a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,7 @@ pub use self::read_buf::ReadBuf;
// Re-export some types from `std::io` so that users don't have to deal
// with conflicts when `use`ing `tokio::io` and `std::io`.
#[doc(no_inline)]
pub use std::io::{Error, ErrorKind, Result, SeekFrom};
cfg_io_driver! {

View File

@ -125,6 +125,7 @@ cfg_time! {
use crate::stream::throttle::{throttle, Throttle};
}
#[doc(no_inline)]
pub use futures_core::Stream;
/// An extension trait for `Stream`s that provides a variety of convenient

View File

@ -125,6 +125,7 @@ mod wheel;
mod tests;
// Re-export for convenience
#[doc(no_inline)]
pub use std::time::Duration;
// ===== Internal utils =====