Skip to content

Commit 1077813

Browse files
committed
Fix style
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 7f5fee3 commit 1077813

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

rclrs/src/service.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ where
8383
T: rosidl_runtime_rs::Service,
8484
{
8585
/// Creates a new service.
86-
pub(crate) fn new<F>(
87-
node: &Arc<Node>,
88-
topic: &str,
89-
callback: F,
90-
) -> Result<Self, RclrsError>
86+
pub(crate) fn new<F>(node: &Arc<Node>, topic: &str, callback: F) -> Result<Self, RclrsError>
9187
// This uses pub(crate) visibility to avoid instantiating this struct outside
9288
// [`Node::create_service`], see the struct's documentation for the rationale
9389
where

rclrs/src/subscription.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,12 @@ mod tests {
419419
.unwrap();
420420

421421
let qos = QoSProfile::default().keep_all().reliable();
422-
let subscription = node.create_subscription::<msg::Empty>("test_topic", qos, callback).unwrap();
423-
let publisher = node.create_publisher::<msg::Empty>("test_topic", qos).unwrap();
422+
let subscription = node
423+
.create_subscription::<msg::Empty>("test_topic", qos, callback)
424+
.unwrap();
425+
let publisher = node
426+
.create_publisher::<msg::Empty>("test_topic", qos)
427+
.unwrap();
424428

425429
(subscription, publisher)
426430
};

0 commit comments

Comments
 (0)