From b9ebf45a0344a9e1d21424ae23665c016b2ef64b Mon Sep 17 00:00:00 2001 From: Ryan Andersen Date: Tue, 4 Mar 2025 22:39:38 -0800 Subject: Relax perform from Fn to more general FnOnce --- runtime/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit