Skip to content

Commit

Permalink
Another insta-hotfix: confused error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed May 15, 2024
1 parent 6d659a1 commit 60bf55b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tokio-listener"
version = "0.4.1"
version = "0.4.2"
edition = "2021"
repository = "https://github.com/vi/tokio-listener"
license = "MIT OR Apache-2.0"
Expand Down
18 changes: 9 additions & 9 deletions src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ impl Listener {
{
MissingCompileTimeFeature {
reason: "bind UNIX path socket",
feature: "UNIX-like platform",
feature: "unix",
}
}
#[cfg(not(unix))]
{
MissingCompileTimeFeature {
MissingPlatformSupport {
reason: "bind UNIX path socket",
feature: "unix",
feature: "UNIX-like platform",
}
}
}
Expand All @@ -382,14 +382,14 @@ impl Listener {
{
MissingCompileTimeFeature {
reason: "bind abstract-namespaced UNIX socket",
feature: "Linux or Android platform",
feature: "unix",
}
}
#[cfg(not(any(target_os = "linux", target_os = "android")))]
{
MissingCompileTimeFeature {
MissingPlatformSupport {
reason: "bind abstract-namespaced UNIX socket",
feature: "unix",
feature: "Linux or Android platform",
}
}
}
Expand All @@ -402,14 +402,14 @@ impl Listener {
{
MissingCompileTimeFeature {
reason: "use inherited file descriptor",
feature: "UNIX-like platform",
feature: "sd_listen",
}
}
#[cfg(not(unix))]
{
MissingCompileTimeFeature {
MissingPlatformSupport {
reason: "use inherited file descriptor",
feature: "sd_listen",
feature: "UNIX-like platform",
}
}
}
Expand Down

0 comments on commit 60bf55b

Please sign in to comment.