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),