mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-25 01:36:50 +00:00
Merge #196
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:
commit
f4182caa4a
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>
|
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue