From 3b59b026b4f11f79d23621e3eb4eb98e03e51117 Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Thu, 18 Apr 2024 12:29:53 -0500 Subject: [PATCH] lint: allow type-complexity for select signatures --- binaries/runtime/src/operator/python.rs | 1 + libraries/communication-layer/request-reply/src/lib.rs | 3 +++ libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs | 1 + 3 files changed, 5 insertions(+) diff --git a/binaries/runtime/src/operator/python.rs b/binaries/runtime/src/operator/python.rs index eec5b7ec..8ebbbfc2 100644 --- a/binaries/runtime/src/operator/python.rs +++ b/binaries/runtime/src/operator/python.rs @@ -130,6 +130,7 @@ pub fn run( if let Event::Reload { .. } = event { reload = true; // Reloading method + #[allow(clippy::blocks_in_conditions)] match Python::with_gil(|py| -> Result> { // Saving current state let current_state = operator diff --git a/libraries/communication-layer/request-reply/src/lib.rs b/libraries/communication-layer/request-reply/src/lib.rs index 6f205462..83f12699 100644 --- a/libraries/communication-layer/request-reply/src/lib.rs +++ b/libraries/communication-layer/request-reply/src/lib.rs @@ -18,6 +18,7 @@ pub trait RequestReplyLayer: Send + Sync { type ReplyData; type Error; + #[allow(clippy::type_complexity)] fn listen( &mut self, addr: Self::Address, @@ -39,6 +40,7 @@ pub trait RequestReplyLayer: Send + Sync { Self::Error, >; + #[allow(clippy::type_complexity)] fn connect( &mut self, addr: Self::Address, @@ -59,6 +61,7 @@ pub trait ListenConnection: Send + Sync { type ReplyData; type Error; + #[allow(clippy::type_complexity)] fn handle_next( &mut self, handler: Box Result>, diff --git a/libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs b/libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs index 7ef5c879..03ed7450 100644 --- a/libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs +++ b/libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs @@ -107,6 +107,7 @@ fn bool_literal(s: &str) -> IResult<&str, bool> { ))(s) } +#[allow(clippy::type_complexity)] pub fn get_string_literal_parser( string_type: GenericString, ) -> Box IResult<&str, String>> {