From abd360893c45984fefad2fa97ae05b855c6fe02b Mon Sep 17 00:00:00 2001 From: Felipe Sere Date: Wed, 20 Nov 2019 22:16:39 +0000 Subject: [PATCH] Disable docs and Debug for unexposed structs --- src/stream/double_ended/nth_back.rs | 2 ++ src/stream/double_ended/rfind.rs | 2 ++ src/stream/double_ended/rfold.rs | 2 ++ src/stream/double_ended/try_rfold.rs | 4 ++-- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/stream/double_ended/nth_back.rs b/src/stream/double_ended/nth_back.rs index 8e1ed63..e32a28f 100644 --- a/src/stream/double_ended/nth_back.rs +++ b/src/stream/double_ended/nth_back.rs @@ -4,6 +4,8 @@ use std::task::{Context, Poll}; use crate::stream::DoubleEndedStream; +#[doc(hidden)] +#[allow(missing_debug_implementations)] pub struct NthBackFuture<'a, S> { stream: &'a mut S, n: usize, diff --git a/src/stream/double_ended/rfind.rs b/src/stream/double_ended/rfind.rs index b05e14e..9472693 100644 --- a/src/stream/double_ended/rfind.rs +++ b/src/stream/double_ended/rfind.rs @@ -4,6 +4,8 @@ use std::pin::Pin; use crate::stream::DoubleEndedStream; +#[doc(hidden)] +#[allow(missing_debug_implementations)] pub struct RFindFuture<'a, S, P> { stream: &'a mut S, p: P, diff --git a/src/stream/double_ended/rfold.rs b/src/stream/double_ended/rfold.rs index 4df7d9f..9002f8d 100644 --- a/src/stream/double_ended/rfold.rs +++ b/src/stream/double_ended/rfold.rs @@ -7,6 +7,8 @@ use pin_project_lite::pin_project; use crate::stream::DoubleEndedStream; pin_project! { + #[doc(hidden)] + #[allow(missing_debug_implementations)] pub struct RFoldFuture { #[pin] stream: S, diff --git a/src/stream/double_ended/try_rfold.rs b/src/stream/double_ended/try_rfold.rs index 4c97cea..9e6295a 100644 --- a/src/stream/double_ended/try_rfold.rs +++ b/src/stream/double_ended/try_rfold.rs @@ -7,8 +7,8 @@ use pin_project_lite::pin_project; use crate::stream::DoubleEndedStream; pin_project! { -#[doc(hidden)] -#[allow(missing_debug_implementations)] + #[doc(hidden)] + #[allow(missing_debug_implementations)] pub struct TryRFoldFuture { #[pin] stream: S,