Skip to content

Commit e1b02d2

Browse files
committed
Simplify unwrap_or call
1 parent e149424 commit e1b02d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclrs/src/node/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ where
268268
if let Some(callback) = requests.remove(&req_id.sequence_number) {
269269
callback(res);
270270
} else if let Some(future) = futures.remove(&req_id.sequence_number) {
271-
future.send(res).unwrap_or_else(|_| ());
271+
future.send(res).unwrap_or(());
272272
}
273273
Ok(())
274274
}

0 commit comments

Comments
 (0)