From 94417b5351b6ba933c07ec16f6cc5793a2500c4d Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 19 Nov 2021 09:25:37 -0600 Subject: [PATCH] Only import from speech_dispatcher when building for Linux. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 9488daa..1b7b5db 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,6 +26,7 @@ use lazy_static::lazy_static; use libc::c_char; #[cfg(target_os = "macos")] use objc::{class, msg_send, sel, sel_impl}; +#[cfg(target_os = "linux")] use speech_dispatcher::SpeechDispatcherError; use thiserror::Error; #[cfg(all(windows, feature = "tolk"))]