From fe78f016cba88324abea801f7d475aa36cbaaa8f Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 20 Nov 2022 22:13:00 +0100 Subject: [PATCH] lol no futures --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9c3014c..e725091 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) where F: FnMut(Self::Item) -> Fut, Self: Sized, @@ -48,10 +48,6 @@ where type Item = ::Assoc; } -pub struct ForEach { - f: F, -} - fn main() { let bodies = map(|url| FutResult(Result::Ok(url)));