diff options
Diffstat (limited to 'src/transport.rs')
-rw-r--r-- | src/transport.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport.rs b/src/transport.rs index ce089fc..2887790 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -221,7 +221,8 @@ impl Transport { Transport::Tcp { .. } => (), #[cfg(feature = "tls")] Transport::EncryptedTcp { .. } => (), - _ => panic!("connection streaming is only supported over TCP"), + #[cfg(feature = "unix-socket")] + Transport::Unix { .. } => panic!("connection streaming is only supported over TCP"), }; let req = self |