From 5f40e30244362fe34337c5b3fefa5af299526333 Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Wed, 11 Dec 2024 18:25:48 +0100 Subject: [PATCH 1/2] clippy fixes --- zenoh-plugin-ros2dds/src/route_service_cli.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zenoh-plugin-ros2dds/src/route_service_cli.rs b/zenoh-plugin-ros2dds/src/route_service_cli.rs index afe5994..0c59f7b 100644 --- a/zenoh-plugin-ros2dds/src/route_service_cli.rs +++ b/zenoh-plugin-ros2dds/src/route_service_cli.rs @@ -287,6 +287,7 @@ impl RouteServiceCli { } } +#[allow(clippy::too_many_arguments)] fn activate( rep_writer: &Arc, req_reader: &Arc, @@ -313,7 +314,7 @@ fn activate( // create DDS Writer to send replies coming from Zenoh to the Client let rep_topic_name = format!("rr{}Reply", ros2_name); - let rep_type_name = ros2_service_type_to_reply_dds_type(&ros2_type); + let rep_type_name = ros2_service_type_to_reply_dds_type(ros2_type); let dds_writer = create_dds_writer( context.participant, rep_topic_name, @@ -338,14 +339,14 @@ fn activate( // create DDS Reader to receive requests and route them to Zenoh let req_topic_name = format!("rq{}Request", ros2_name); - let req_type_name = ros2_service_type_to_request_dds_type(&ros2_type); + let req_type_name = ros2_service_type_to_request_dds_type(ros2_type); let zquerier = zenoh_querier.clone(); let route_id2 = route_id.to_owned(); let dds_reader = create_dds_reader( context.participant, req_topic_name, req_type_name, - &type_info, + type_info, true, qos, None, From d2a342cfbc3c1ae2ddc206598ca454a68d7a0eb8 Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Wed, 11 Dec 2024 18:27:09 +0100 Subject: [PATCH 2/2] cargo fmt --- zenoh-plugin-ros2dds/src/route_service_cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh-plugin-ros2dds/src/route_service_cli.rs b/zenoh-plugin-ros2dds/src/route_service_cli.rs index 0c59f7b..2aa62e6 100644 --- a/zenoh-plugin-ros2dds/src/route_service_cli.rs +++ b/zenoh-plugin-ros2dds/src/route_service_cli.rs @@ -287,7 +287,7 @@ impl RouteServiceCli { } } -#[allow(clippy::too_many_arguments)] +#[allow(clippy::too_many_arguments)] fn activate( rep_writer: &Arc, req_reader: &Arc,