From 6b0e6dc0d516938999a15ee06d4a9e8c6d2551c8 Mon Sep 17 00:00:00 2001 From: olegnn Date: Mon, 20 Jan 2020 17:41:33 +0300 Subject: [PATCH] `scan` template args reodered to the same order as `Iterator::scan` --- futures-util/src/stream/stream/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/stream/stream/mod.rs b/futures-util/src/stream/stream/mod.rs index 0a28ab6722..da5ade85bb 100644 --- a/futures-util/src/stream/stream/mod.rs +++ b/futures-util/src/stream/stream/mod.rs @@ -566,7 +566,7 @@ pub trait StreamExt: Stream { /// assert_eq!(vec![1, 2, 3], stream.collect::>().await); /// # }); /// ``` - fn scan(self, initial_state: S, f: F) -> Scan + fn scan(self, initial_state: S, f: F) -> Scan where F: FnMut(&mut S, Self::Item) -> Fut, Fut: Future>,