diff --git a/src/stream/stream/mod.rs b/src/stream/stream/mod.rs index 9bcccb6..24423b6 100644 --- a/src/stream/stream/mod.rs +++ b/src/stream/stream/mod.rs @@ -541,8 +541,7 @@ pub trait Stream { fn scan(self, initial_state: St, f: F) -> Scan where Self: Sized, - St: Unpin, - F: Unpin + FnMut(&mut St, Self::Item) -> Option, + F: FnMut(&mut St, Self::Item) -> Option, { Scan::new(self, initial_state, f) }