Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Carter committed Aug 15, 2024
1 parent 09b3c5e commit cd953b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions roslibrust/src/ros1/node/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ use super::actor::{Node, NodeServerHandle};
use crate::{
ros1::{
names::Name, publisher::Publisher, service_client::ServiceClient, subscriber::Subscriber,
subscriber::SubscriberAny,
NodeError, ServiceServer,
subscriber::SubscriberAny, NodeError, ServiceServer,
},
ServiceFn,
};
Expand Down
4 changes: 3 additions & 1 deletion roslibrust/src/ros1/subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ async fn establish_publisher_connection(
stream.write_all(&conn_header_bytes[..]).await?;

if let Ok(responded_header) = tcpros::receive_header(&mut stream).await {
if conn_header.md5sum == Some("*".to_string()) || conn_header.md5sum == responded_header.md5sum {
if conn_header.md5sum == Some("*".to_string())
|| conn_header.md5sum == responded_header.md5sum
{
log::debug!(
"Established connection with publisher for {:?}",
conn_header.topic
Expand Down
5 changes: 1 addition & 4 deletions roslibrust/tests/ros1_native_integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ mod tests {
.await
.unwrap();

let mut subscriber = nh
.subscribe_any("/test_subscribe_any", 1)
.await
.unwrap();
let mut subscriber = nh.subscribe_any("/test_subscribe_any", 1).await.unwrap();

publisher
.publish(&std_msgs::String {
Expand Down

0 comments on commit cd953b6

Please sign in to comment.