lol no futures

This commit is contained in:
nora 2022-11-20 22:05:25 +01:00
parent c226fbd8b1
commit 5617c76385
No known key found for this signature in database

View file

@ -25,7 +25,7 @@ mod fut {
pub trait Stream { pub trait Stream {
type Item; type Item;
fn map<T, F>(self, f: F) -> Map<Self, F> fn map<T, F>(self, f: F) -> Map<F>
where where
F: FnMut(Self::Item) -> T, F: FnMut(Self::Item) -> T,
Self: Sized, Self: Sized,
@ -68,10 +68,9 @@ mod fut {
} }
} }
impl<St, F> Stream for Map<F> impl<F> Stream for Map<F>
where where
St: Stream, F: FnOnce1<String>,
F: FnOnce1<St::Item>,
F::Output: Future, F::Output: Future,
{ {
type Item = <F::Output as Future>::Output; type Item = <F::Output as Future>::Output;