Skip to content

Commit

Permalink
clippy fixes (#361)
Browse files Browse the repository at this point in the history
* clippy fixes

* cargo fmt
  • Loading branch information
milyin authored Dec 11, 2024
1 parent 1836e75 commit 443dd97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zenoh-plugin-ros2dds/src/route_service_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ impl RouteServiceCli {
}
}

#[allow(clippy::too_many_arguments)]
fn activate(
rep_writer: &Arc<AtomicDDSEntity>,
req_reader: &Arc<AtomicDDSEntity>,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 443dd97

Please sign in to comment.