File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub use wait::*;
46
46
///
47
47
/// [1]: crate::RclReturnCode
48
48
pub 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) ?;
50
50
let ready_entities = wait_set. wait ( timeout) ?;
51
51
52
52
for ready_subscription in ready_entities. subscriptions {
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ impl WaitSet {
321
321
/// This list is not comprehensive, since further errors may occur in the `rmw` or `rcl` layers.
322
322
///
323
323
/// [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 > {
325
325
let timeout_ns = match timeout. map ( |d| d. as_nanos ( ) ) {
326
326
None => -1 ,
327
327
Some ( ns) if ns <= i64:: MAX as u128 => ns as i64 ,
You can’t perform that action at this time.
0 commit comments