Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carter committed Jul 8, 2024
1 parent cbf9ec2 commit ebaf8d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roslibrust/examples/ros1_talker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ async fn main() -> Result<(), anyhow::Error> {
let nh = NodeHandle::new("http://localhost:11311", "talker_rs")
.await
.map_err(|err| err)?;
let publisher = nh.advertise::<geometry_msgs::PointStamped>("/my_point", 1).await?;
let publisher = nh
.advertise::<geometry_msgs::PointStamped>("/my_point", 1)
.await?;

for count in 0..50 {
let mut msg = geometry_msgs::PointStamped::default();
msg.point.x = count as f64;
publisher
.publish(&msg)
.await?;
publisher.publish(&msg).await?;
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
}

Expand Down

0 comments on commit ebaf8d3

Please sign in to comment.