diff --git a/src/device.rs b/src/device.rs index f52c2a8..5715aa8 100644 --- a/src/device.rs +++ b/src/device.rs @@ -1,15 +1,10 @@ use crate::{ modules::{retrieve_module_from_name, start_module, HostEvent}, - Button, ConfigError, DeviceConfig, - skip_if_none, unwrap_or_error + skip_if_none, unwrap_or_error, Button, ConfigError, DeviceConfig, }; use deck_driver as streamdeck; use hidapi::HidApi; -use std::{ - collections::HashMap, - fmt::Display, - sync::Arc, -}; +use std::{collections::HashMap, fmt::Display, sync::Arc}; use streamdeck::{ asynchronous::{AsyncStreamDeck, ButtonStateUpdate}, info::Kind, @@ -17,8 +12,8 @@ use streamdeck::{ }; use tokio::{ process::Command, - sync::mpsc::{self, error::TrySendError}, runtime::Runtime, + sync::mpsc::{self, error::TrySendError}, }; use tracing::{debug, error, info_span, trace}; @@ -93,11 +88,13 @@ impl Device { let button = self.config.buttons.get(i).unwrap().to_owned(); unwrap_or_error!(self._create_module(button).await); } - } async fn _create_module(&mut self, btn: Arc