remove unneeded Box

This commit is contained in:
Fl1tzi 2023-05-22 22:49:32 +02:00
parent f50c195d6a
commit f45dc423d0
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ impl Device {
let b = btn.clone(); let b = btn.clone();
runtime.spawn(async move { runtime.spawn(async move {
start_module(ser, b, module, dev, Box::new(module_receiver)).await start_module(ser, b, module, dev, module_receiver).await
}); });
} }
// if the receiver already dropped the listener then just directly insert none. // if the receiver already dropped the listener then just directly insert none.

View file

@ -109,7 +109,7 @@ impl DeviceAccess {
} }
pub type ReturnError = Box<dyn Error + Send + Sync>; pub type ReturnError = Box<dyn Error + Send + Sync>;
pub type ChannelReceiver = Box<mpsc::Receiver<HostEvent>>; pub type ChannelReceiver = mpsc::Receiver<HostEvent>;
#[async_trait] #[async_trait]
pub trait Module { pub trait Module {