Skip to content

Commit

Permalink
Avoid many doc errors from std
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and cramertj committed May 6, 2019
1 parent 4025e79 commit 052f7b6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions futures-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,13 @@ pub use self::async_await::*;
#[cfg(feature = "async-await")]
#[doc(hidden)]
pub mod rand_reexport { // used by select!
pub use rand::{prelude::SliceRandom, thread_rng};

// HACK: Define dummy `ThreadRng` to avoid `intra_doc_link_resolution_failure` warning.
#[allow(missing_debug_implementations)]
#[doc(hidden)]
pub struct ThreadRng {}
pub use rand::{prelude::SliceRandom, thread_rng};
}

#[doc(hidden)]
pub mod core_reexport {
#[doc(hidden)]
pub use core::*;
}

Expand Down

0 comments on commit 052f7b6

Please sign in to comment.