diff --git a/input-emulation/src/error.rs b/input-emulation/src/error.rs index 6e85ae9..8695777 100644 --- a/input-emulation/src/error.rs +++ b/input-emulation/src/error.rs @@ -1,3 +1,4 @@ +#[cfg(all(unix, feature = "libei", not(target_os = "macos")))] use reis::tokio::EiConvertEventStreamError; use std::io; use thiserror::Error; @@ -19,6 +20,7 @@ pub struct ReisConvertStreamError { inner: EiConvertEventStreamError, } +#[cfg(all(unix, feature = "libei", not(target_os = "macos")))] impl From for ReisConvertStreamError { fn from(e: EiConvertEventStreamError) -> Self { Self { inner: e }