diff --git a/src/transport.rs b/src/transport.rs index 112d5486..5a48f629 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -236,14 +236,6 @@ impl Transport { where B: Into, { - match self { - Transport::Tcp { .. } => (), - #[cfg(feature = "tls")] - Transport::EncryptedTcp { .. } => (), - #[cfg(feature = "unix-socket")] - Transport::Unix { .. } => panic!("connection streaming is only supported over TCP"), - }; - let req = self .build_request( method,