Skip to content

Commit

Permalink
🔥 zb: Remove an incorrect cfg condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zeenix committed Feb 9, 2024
1 parent af493c4 commit 244e931
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion zbus/src/address/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ impl Transport {
// Helper for `FromStr` impl of `Address`.
pub(super) fn from_options(transport: &str, options: HashMap<&str, &str>) -> Result<Self> {
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),
Expand Down
1 change: 0 additions & 1 deletion zbus/src/address/transport/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> {
let path = opts.get("path");
let abs = opts.get("abstract");
Expand Down

0 comments on commit 244e931

Please sign in to comment.