From 35ddd1010aef558b84be77a260936a2a852df4c4 Mon Sep 17 00:00:00 2001 From: Andy Dixon Date: Tue, 13 Oct 2026 12:24:32 +0100 Subject: [PATCH] fix(test): gate the serial tests' mpsc import on Linux like the tests that use it (macOS clippy) --- rust/core/src/clients/serial.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]