mirror of
https://codeberg.org/Fl1tzi/microdeck.git
synced 2024-05-08 14:40:44 +00:00
remove unneeded Box
This commit is contained in:
parent
f50c195d6a
commit
f45dc423d0
|
@ -109,7 +109,7 @@ impl Device {
|
|||
let b = btn.clone();
|
||||
|
||||
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.
|
||||
|
|
|
@ -109,7 +109,7 @@ impl DeviceAccess {
|
|||
}
|
||||
|
||||
pub type ReturnError = Box<dyn Error + Send + Sync>;
|
||||
pub type ChannelReceiver = Box<mpsc::Receiver<HostEvent>>;
|
||||
pub type ChannelReceiver = mpsc::Receiver<HostEvent>;
|
||||
|
||||
#[async_trait]
|
||||
pub trait Module {
|
||||
|
|
Loading…
Reference in a new issue