From eb004cbb21601f68bb9d724ed3d322f5826bb958 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 2 Jan 2025 22:01:43 -0800 Subject: [PATCH] drop Send requirement --- strafe-client/src/compat_worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strafe-client/src/compat_worker.rs b/strafe-client/src/compat_worker.rs index aec9367..d41ea3e 100644 --- a/strafe-client/src/compat_worker.rs +++ b/strafe-client/src/compat_worker.rs @@ -3,11 +3,11 @@ pub type INWorker<'a,Task>=CompatNWorker<'a,Task>; pub struct CompatNWorker<'a,Task>{ data:std::marker::PhantomData, - f:Box, + f:Box, } impl<'a,Task> CompatNWorker<'a,Task>{ - pub fn new(f:impl FnMut(Task)+Send+'a)->CompatNWorker<'a,Task>{ + pub fn new(f:impl FnMut(Task)+'a)->CompatNWorker<'a,Task>{ Self{ data:std::marker::PhantomData, f:Box::new(f),