From 5617c7638575dea1d474fcf978873b8b24d22f60 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 20 Nov 2022 22:05:25 +0100 Subject: [PATCH] lol no futures --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5825c3c..f39b5f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ mod fut { pub trait Stream { type Item; - fn map(self, f: F) -> Map + fn map(self, f: F) -> Map where F: FnMut(Self::Item) -> T, Self: Sized, @@ -68,10 +68,9 @@ mod fut { } } - impl Stream for Map + impl Stream for Map where - St: Stream, - F: FnOnce1, + F: FnOnce1, F::Output: Future, { type Item = ::Output;