diff --git a/src/main.rs b/src/main.rs index 5de2bd1..3f6a078 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ impl Project for FutResult { pub trait Stream { type Item; - fn for_each(self, f: F) -> ForEach + fn for_each(self, f: F) -> ForEach where F: FnMut(Self::Item) -> Fut, Self: Sized, @@ -48,8 +48,7 @@ where type Item = ::Assoc; } -pub struct ForEach { - stream: St, +pub struct ForEach { f: F, }