diff --git a/rclrs/src/publisher.rs b/rclrs/src/publisher.rs index 5f3b830cb..b1cdd93b9 100644 --- a/rclrs/src/publisher.rs +++ b/rclrs/src/publisher.rs @@ -232,9 +232,7 @@ where /// Returns true if message loans are possible, false otherwise. pub fn can_loan_messages(&self) -> bool { - unsafe { - rcl_publisher_can_loan_messages(&*self.handle.rcl_publisher.lock().unwrap()) - } + unsafe { rcl_publisher_can_loan_messages(&*self.handle.rcl_publisher.lock().unwrap()) } } }