diff --git a/satrs-core/src/event_man.rs b/satrs-core/src/event_man.rs index dbc741a..f465969 100644 --- a/satrs-core/src/event_man.rs +++ b/satrs-core/src/event_man.rs @@ -119,7 +119,7 @@ pub trait SenderTable Option<&Box>>; + ) -> Option<&dyn SendEventProvider>; fn add_send_event_provider( &mut self, send_provider: Box< @@ -381,9 +381,11 @@ impl fn get_send_event_provider( &self, id: &ChannelId, - ) -> Option<&Box>> - { - self.senders.get(id).filter(|sender| sender.id() == *id) + ) -> Option<&dyn SendEventProvider> { + self.senders + .get(id) + .filter(|sender| sender.id() == *id) + .map(|v| v.as_ref()) } fn add_send_event_provider(