From 78d512a2774df4af697ea6b6556a9e6bf58b22a3 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 17 Jul 2022 21:26:29 +0900 Subject: [PATCH] Ignore clippy::type_complexity lint in example ``` warning: very complex type used. Consider factoring parts into `type` definitions --> examples/hyper-server.rs:132:15 | 132 | Handshake(Pin>>> + Send>>), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(clippy::type_complexity)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity ``` --- examples/hyper-server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/hyper-server.rs b/examples/hyper-server.rs index 80eb060..d086d21 100644 --- a/examples/hyper-server.rs +++ b/examples/hyper-server.rs @@ -129,6 +129,7 @@ enum SmolStream { Tls(TlsStream>), /// A TCP connection that is in process of getting secured by TLS. + #[allow(clippy::type_complexity)] Handshake(Pin>>> + Send>>), }