Skip to content

Commit 4cb96cd

Browse files
Replace try_next with try_recv
Usage of try_next is deprecated in futures crate
1 parent 445325b commit 4cb96cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rclrs/src/wait_set/wait_set_runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl WaitSetRunner {
140140
// TODO(@mxgrey): SmallVec would be better suited here if we are
141141
// okay with adding that as a dependency.
142142
let mut new_waitables = Vec::new();
143-
while let Ok(Some(new_waitable)) = self.waitable_receiver.try_next() {
143+
while let Ok(new_waitable) = self.waitable_receiver.try_recv() {
144144
new_waitables.push(new_waitable);
145145
}
146146
if !new_waitables.is_empty() {
@@ -152,7 +152,7 @@ impl WaitSetRunner {
152152
}
153153
}
154154

155-
while let Ok(Some(task)) = self.task_receiver.try_next() {
155+
while let Ok(task) = self.task_receiver.try_recv() {
156156
task(&mut *self.payload);
157157
}
158158

0 commit comments

Comments
 (0)