From 60bf55bfc4f9ab958c9c40646af3ecaa7f84ce24 Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Wed, 15 May 2024 09:49:32 +0200 Subject: [PATCH] Another insta-hotfix: confused error messages --- Cargo.toml | 2 +- src/listener.rs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d61a972..ee580ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/listener.rs b/src/listener.rs index 0de5d22..bbf13c2 100644 --- a/src/listener.rs +++ b/src/listener.rs @@ -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", } } } @@ -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", } } } @@ -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", } } }