File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub use wait::*;
4646///
4747/// [1]: crate::RclReturnCode
4848pub fn spin_once ( node : & Node , timeout : Option < Duration > ) -> Result < ( ) , RclrsError > {
49- let mut wait_set = WaitSet :: new_for_node ( node) ?;
49+ let wait_set = WaitSet :: new_for_node ( node) ?;
5050 let ready_entities = wait_set. wait ( timeout) ?;
5151
5252 for ready_subscription in ready_entities. subscriptions {
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ impl WaitSet {
321321 /// This list is not comprehensive, since further errors may occur in the `rmw` or `rcl` layers.
322322 ///
323323 /// [1]: std::time::Duration::ZERO
324- pub fn wait ( & mut self , timeout : Option < Duration > ) -> Result < ReadyEntities , RclrsError > {
324+ pub fn wait ( mut self , timeout : Option < Duration > ) -> Result < ReadyEntities , RclrsError > {
325325 let timeout_ns = match timeout. map ( |d| d. as_nanos ( ) ) {
326326 None => -1 ,
327327 Some ( ns) if ns <= i64:: MAX as u128 => ns as i64 ,
You can’t perform that action at this time.
0 commit comments