2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-24 09:16:46 +00:00

Remove Unpin bounds more

This commit is contained in:
Wonwoo Choi 2019-09-16 11:28:38 +09:00
parent 5f7a4433d5
commit e7b0fe2d2e

View file

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