We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4956c31 commit 43b345aCopy full SHA for 43b345a
rclrs/src/wait.rs
@@ -321,7 +321,7 @@ impl WaitSet {
321
/// This list is not comprehensive, since further errors may occur in the `rmw` or `rcl` layers.
322
///
323
/// [1]: std::time::Duration::ZERO
324
- pub fn wait(&mut self, timeout: Option<Duration>) -> Result<ReadyEntities, RclrsError> {
+ pub fn wait(self, timeout: Option<Duration>) -> Result<ReadyEntities, RclrsError> {
325
let timeout_ns = match timeout.map(|d| d.as_nanos()) {
326
None => -1,
327
Some(ns) if ns <= i64::MAX as u128 => ns as i64,
0 commit comments