diff --git a/src/main.rs b/src/main.rs index d881d86..1e371d7 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(()) -> T, + F: FnMut() -> T, { loop {} } @@ -43,13 +43,13 @@ pub trait FnOnce1 { impl FnOnce1 for T where - T: FnOnce(()) -> R, + T: FnOnce() -> R, { type Output = R; } fn main() { - let bodies = map(|url| Wrap(Result::Ok(url))); + let bodies = map(|| Wrap(Result::Ok(()))); bodies.for_each(|b| async { match b {