Skip to content

Commit f4182ca

Browse files
bors[bot]tirr-c
andauthored
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 <[email protected]>
2 parents c6fecbd + e7b0fe2 commit f4182ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/stream/stream/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,7 @@ pub trait Stream {
541541
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
542542
where
543543
Self: Sized,
544-
St: Unpin,
545-
F: Unpin + FnMut(&mut St, Self::Item) -> Option<B>,
544+
F: FnMut(&mut St, Self::Item) -> Option<B>,
546545
{
547546
Scan::new(self, initial_state, f)
548547
}

0 commit comments

Comments
 (0)