aboutsummaryrefslogtreecommitdiff
path: root/src/stream/unfold.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-04-02 17:37:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-02 17:37:05 +0000
commitbd42804c0d82879869969a7103f63c4efccdbffe (patch)
tree931c1432113b74ac060d81ede8b4cbf7d3abfd76 /src/stream/unfold.rs
parent2d504b322047484e1755858ff567f71f0e26490c (diff)
parentac32bfb85d74a0c3d5733f72a0571b4d77b23597 (diff)
downloadfutures-util-bd42804c0d82879869969a7103f63c4efccdbffe.tar.gz
Upgrade rust/crates/futures-util to 0.3.13 am: 1fdff8fd4c am: cf1d92ef03 am: ac32bfb85d
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures-util/+/1662922 Change-Id: I2ae408bfa218468323fecc75cab01c06ba6c8b8b
Diffstat (limited to 'src/stream/unfold.rs')
-rw-r--r--src/stream/unfold.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stream/unfold.rs b/src/stream/unfold.rs
index 473bb67..e17d465 100644
--- a/src/stream/unfold.rs
+++ b/src/stream/unfold.rs
@@ -1,3 +1,4 @@
+use super::assert_stream;
use crate::unfold_state::UnfoldState;
use core::fmt;
use core::pin::Pin;
@@ -51,10 +52,10 @@ where
F: FnMut(T) -> Fut,
Fut: Future<Output = Option<(Item, T)>>,
{
- Unfold {
+ assert_stream::<Item, _>(Unfold {
f,
state: UnfoldState::Value { value: init },
- }
+ })
}
pin_project! {