From 5fecc8c3f4c650cd18a9daceb63e3e399d6ed876 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 20 Nov 2022 22:11:58 +0100 Subject: [PATCH] lol no futures --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, }