diff --git a/runtime/src/task.rs b/runtime/src/task.rs index 710be5d9..fd5970ac 100644 --- a/runtime/src/task.rs +++ b/runtime/src/task.rs @@ -37,7 +37,7 @@ impl Task { /// output with the given closure. pub fn perform( future: impl Future + MaybeSend + 'static, - f: impl Fn(A) -> T + MaybeSend + 'static, + f: impl FnOnce(A) -> T + MaybeSend + 'static, ) -> Self where T: MaybeSend + 'static,