From 4e207fbd1982202226682146ff558e15d0447f63 Mon Sep 17 00:00:00 2001 From: jeremycostanzo Date: Sat, 4 Dec 2021 08:38:28 +0100 Subject: [PATCH] Remove compiler warning on non windows platforms ParallelCommand was only used on windows but it was imported for every distro --- src/bridge/handler.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bridge/handler.rs b/src/bridge/handler.rs index 08cb727..f059d9f 100644 --- a/src/bridge/handler.rs +++ b/src/bridge/handler.rs @@ -8,7 +8,9 @@ use rmpv::Value; use tokio::task; use super::events::{parse_redraw_event, RedrawEvent}; -use super::ui_commands::{ParallelCommand, UiCommand}; +#[cfg(windows)] +use super::ui_commands::ParallelCommand; +use super::ui_commands::UiCommand; use crate::bridge::TxWrapper; use crate::channel_utils::*; use crate::error_handling::ResultPanicExplanation;