fix(test): gate the serial tests' mpsc import on Linux like the tests that use it (macOS clippy)
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user