From 052f7b69902f58d8b309c2d5647fe672040540a9 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 3 May 2019 21:30:22 +0900 Subject: [PATCH] Avoid many doc errors from std --- futures-util/src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/futures-util/src/lib.rs b/futures-util/src/lib.rs index 87db445b87..e437da776d 100644 --- a/futures-util/src/lib.rs +++ b/futures-util/src/lib.rs @@ -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::*; }