From 244e9314006d9b2a8fcbc45aadb708562c5193a3 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Khan Date: Sat, 10 Feb 2024 00:48:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20zb:=20Remove=20an=20incorrect=20?= =?UTF-8?q?cfg=20condition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zbus/src/address/transport/mod.rs | 1 - zbus/src/address/transport/unix.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/zbus/src/address/transport/mod.rs b/zbus/src/address/transport/mod.rs index 29b326f6e..d12685460 100644 --- a/zbus/src/address/transport/mod.rs +++ b/zbus/src/address/transport/mod.rs @@ -210,7 +210,6 @@ impl Transport { // Helper for `FromStr` impl of `Address`. pub(super) fn from_options(transport: &str, options: HashMap<&str, &str>) -> Result { match transport { - #[cfg(any(unix, not(feature = "tokio")))] "unix" => Unix::from_options(options).map(Self::Unix), "tcp" => Tcp::from_options(options, false).map(Self::Tcp), "nonce-tcp" => Tcp::from_options(options, true).map(Self::Tcp), diff --git a/zbus/src/address/transport/unix.rs b/zbus/src/address/transport/unix.rs index 23c74e14d..93ed43b93 100644 --- a/zbus/src/address/transport/unix.rs +++ b/zbus/src/address/transport/unix.rs @@ -31,7 +31,6 @@ impl Unix { self.path } - #[cfg(any(unix, not(feature = "tokio")))] pub(super) fn from_options(opts: std::collections::HashMap<&str, &str>) -> crate::Result { let path = opts.get("path"); let abs = opts.get("abstract");