Browse Source

lint: allow type-complexity for select signatures

tags/v0.3.4-rc1
Michael-J-Ward 2 years ago
parent
commit
3b59b026b4
3 changed files with 5 additions and 0 deletions
  1. +1
    -0
      binaries/runtime/src/operator/python.rs
  2. +3
    -0
      libraries/communication-layer/request-reply/src/lib.rs
  3. +1
    -0
      libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs

+ 1
- 0
binaries/runtime/src/operator/python.rs View File

@@ -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<Py<PyAny>> {
// Saving current state
let current_state = operator


+ 3
- 0
libraries/communication-layer/request-reply/src/lib.rs View File

@@ -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<dyn FnOnce(Self::RequestData) -> Result<Self::ReplyData, Self::Error>>,


+ 1
- 0
libraries/extensions/ros2-bridge/msg-gen/src/parser/literal.rs View File

@@ -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<dyn FnMut(&str) -> IResult<&str, String>> {


Loading…
Cancel
Save