Suppress clippy too-many-arguments warning

Because if it attempts to extract the arguments to the struct members,
the compiler complains about generics and lifetime boundaries...
This commit is contained in:
moznion
2020-12-12 01:03:00 +09:00
parent 7cb70a973c
commit 93d7dfb3ed

View File

@@ -93,6 +93,7 @@ impl Server {
}
}
#[allow(clippy::too_many_arguments)]
async fn process_request<X, E: Debug, T: RequestHandler<X, E>, U: SecretProvider>(
conn: Arc<UdpSocket>,
request_data: &[u8],
@@ -131,7 +132,7 @@ impl Server {
e
);
debug!("failed request data => {:?}", request_data);
// TODO error handler?
// TODO error handler support?
return;
}
};