From a7f5b9aefe9395f5beff8808edda32b45eb6040a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 21 Nov 2021 10:53:06 -0500 Subject: [PATCH] Allow type-complexity in hyper.rs example This isn't the prettiest, but suppressing the warning does make the example warning free. --- crates/arti-client/examples/hyper.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/arti-client/examples/hyper.rs b/crates/arti-client/examples/hyper.rs index 8f33601ea..c548503b8 100644 --- a/crates/arti-client/examples/hyper.rs +++ b/crates/arti-client/examples/hyper.rs @@ -93,6 +93,7 @@ fn uri_to_host_port(uri: Uri) -> Result<(String, u16)> { impl Service for ArtiHttpConnector { type Response = ArtiHttpConnection; type Error = anyhow::Error; + #[allow(clippy::type_complexity)] type Future = Pin> + Send>>; fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll> {