diff --git a/rclrs/src/action/action_server.rs b/rclrs/src/action/action_server.rs index 468eff101..100480733 100644 --- a/rclrs/src/action/action_server.rs +++ b/rclrs/src/action/action_server.rs @@ -245,7 +245,7 @@ impl ActionServerState { mut callback: impl FnMut(RequestedGoal) -> Task + Send + Sync + 'static, ) -> Result, RclrsError> where - Task: Future + Send + Sync + 'static, + Task: Future + Send + 'static, { let callback = Box::new( move |requested_goal| -> BoxFuture<'static, TerminatedGoal> { diff --git a/rclrs/src/node.rs b/rclrs/src/node.rs index 8fdccad79..85aa44425 100644 --- a/rclrs/src/node.rs +++ b/rclrs/src/node.rs @@ -404,7 +404,7 @@ impl NodeState { callback: impl FnMut(RequestedGoal) -> Task + Send + Sync + 'static, ) -> Result, RclrsError> where - Task: Future + Send + Sync + 'static, + Task: Future + Send + 'static, { ActionServerState::create(self, options, callback) }