2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-30 01:05:31 +00:00
196: Remove more Unpin bounds for Stream::scan r=stjepang a=tirr-c

cc #192. I missed the bounds on `Stream::scan` itself.

Co-authored-by: Wonwoo Choi <chwo9843@gmail.com>
This commit is contained in:
bors[bot] 2019-09-16 06:50:43 +00:00 committed by GitHub
commit f4182caa4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -541,8 +541,7 @@ pub trait Stream {
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
where
Self: Sized,
St: Unpin,
F: Unpin + FnMut(&mut St, Self::Item) -> Option<B>,
F: FnMut(&mut St, Self::Item) -> Option<B>,
{
Scan::new(self, initial_state, f)
}