diff --git a/src/main.rs b/src/main.rs index 3f6a078..9c3014c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,7 @@ pub trait Stream { pub fn map(f: F) -> Map where - F: FnMut(String) -> T, + F: FnMut(()) -> T, { loop {} } @@ -42,7 +42,7 @@ where impl Stream for Map where - F: FnOnce1, + F: FnOnce1<()>, F::Output: Project, { type Item = ::Assoc;