From ce14a50c642b4808169abb3c9d789a088dcdf4d4 Mon Sep 17 00:00:00 2001 From: Collin Styles Date: Sat, 28 Oct 2023 09:31:12 -0700 Subject: [PATCH 1/2] Import `TryAll` and `TryAny` in the `stream` module This makes them show up on the documentation page for the `stream` module. It also makes the return types on the `TryStreamExt` documentation page link to the adapter types. --- futures-util/src/stream/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/futures-util/src/stream/mod.rs b/futures-util/src/stream/mod.rs index 08f0649273..2787985573 100644 --- a/futures-util/src/stream/mod.rs +++ b/futures-util/src/stream/mod.rs @@ -52,8 +52,8 @@ pub use self::stream::{ReuniteError, SplitSink, SplitStream}; mod try_stream; pub use self::try_stream::{ - try_unfold, AndThen, ErrInto, InspectErr, InspectOk, IntoStream, MapErr, MapOk, OrElse, - TryCollect, TryConcat, TryFilter, TryFilterMap, TryFlatten, TryNext, TrySkipWhile, + try_unfold, AndThen, ErrInto, InspectErr, InspectOk, IntoStream, MapErr, MapOk, OrElse, TryAll, + TryAny, TryCollect, TryConcat, TryFilter, TryFilterMap, TryFlatten, TryNext, TrySkipWhile, TryStreamExt, TryTakeWhile, TryUnfold, }; From 956cfd4b31d389688bfc6c1c5e6f4be38eefcc2e Mon Sep 17 00:00:00 2001 From: Collin Styles Date: Sat, 28 Oct 2023 09:33:08 -0700 Subject: [PATCH 2/2] Fix the documentation for the `TryAny` adapter --- futures-util/src/stream/try_stream/try_any.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/stream/try_stream/try_any.rs b/futures-util/src/stream/try_stream/try_any.rs index 15adb30971..55e876be05 100644 --- a/futures-util/src/stream/try_stream/try_any.rs +++ b/futures-util/src/stream/try_stream/try_any.rs @@ -7,7 +7,7 @@ use futures_core::task::{Context, Poll}; use pin_project_lite::pin_project; pin_project! { - /// Future for the [`any`](super::StreamExt::any) method. + /// Future for the [`try_any`](super::TryStreamExt::try_any) method. #[must_use = "futures do nothing unless you `.await` or poll them"] pub struct TryAny { #[pin]