diff --git a/rust/core/src/clients/serial.rs b/rust/core/src/clients/serial.rs index d2a4c9b..88b7a9e 100644 --- a/rust/core/src/clients/serial.rs +++ b/rust/core/src/clients/serial.rs @@ -206,7 +206,7 @@ fn open_error(path: &str, e: &serialport::Error) -> crate::Error { #[cfg(test)] mod tests { use super::*; - #[cfg(unix)] + #[cfg(target_os = "linux")] use std::sync::mpsc; #[test]