mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
Remove Unpin bounds more
This commit is contained in:
parent
5f7a4433d5
commit
e7b0fe2d2e
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue