fix(test): gate the serial tests' mpsc import on Linux like the tests that use it (macOS clippy)

This commit is contained in:
Andy Dixon
2026-10-13 12:24:32 +01:00
parent ccce883612
commit 35ddd1010a
+1 -1
View File
@@ -206,7 +206,7 @@ fn open_error(path: &str, e: &serialport::Error) -> crate::Error {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
#[cfg(unix)] #[cfg(target_os = "linux")]
use std::sync::mpsc; use std::sync::mpsc;
#[test] #[test]