From 5964d244259153decdabad6da99500f3d80ea2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=87=E9=80=B8?= Date: Tue, 2 Jul 2024 11:12:21 +0800 Subject: [PATCH] fix: duplicate mod --- compio-signal/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compio-signal/src/lib.rs b/compio-signal/src/lib.rs index 5c3ecd37..1256fefd 100644 --- a/compio-signal/src/lib.rs +++ b/compio-signal/src/lib.rs @@ -22,12 +22,10 @@ #[cfg(windows)] pub mod windows; +#[cfg(unix)] #[cfg_attr(target_os = "linux", path = "linux.rs")] pub mod unix; -#[cfg(all(unix, not(target_os = "linux")))] -pub mod unix; - /// Completes when a "ctrl-c" notification is sent to the process. pub async fn ctrl_c() -> std::io::Result<()> { #[cfg(windows)]