From 812b91a98cd1c1862b556f160d03b6bd15bd8d47 Mon Sep 17 00:00:00 2001 From: Marco Boneberger Date: Sat, 30 Dec 2023 20:53:10 +0100 Subject: [PATCH] Add Arc::clone to the Readme tutorial to fix compile error (#356) --- docs/writing-your-first-rclrs-node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing-your-first-rclrs-node.md b/docs/writing-your-first-rclrs-node.md index 335d50499..6f252675c 100644 --- a/docs/writing-your-first-rclrs-node.md +++ b/docs/writing-your-first-rclrs-node.md @@ -212,7 +212,7 @@ fn main() -> Result<(), rclrs::RclrsError> { republisher_other_thread.republish()?; } }); - rclrs::spin(republisher.node) + rclrs::spin(Arc::clone(&republisher.node)) } ```