diff --git a/satrs-core/src/event_man.rs b/satrs-core/src/event_man.rs index 5c56b85..dbc741a 100644 --- a/satrs-core/src/event_man.rs +++ b/satrs-core/src/event_man.rs @@ -117,9 +117,9 @@ pub trait ListenerTable { pub trait SenderTable { fn contains_send_event_provider(&self, id: &ChannelId) -> bool; fn get_send_event_provider( - &mut self, + &self, id: &ChannelId, - ) -> Option<&mut Box>>; + ) -> Option<&Box>>; fn add_send_event_provider( &mut self, send_provider: Box< @@ -257,7 +257,7 @@ impl /// This function will track up to 3 errors returned as part of the /// [EventRoutingErrorsWithResult] error struct. pub fn try_event_handling( - &mut self, + &self, ) -> Result< EventRoutingResult, EventRoutingErrorsWithResult, @@ -379,11 +379,11 @@ impl } fn get_send_event_provider( - &mut self, + &self, id: &ChannelId, - ) -> Option<&mut Box>> + ) -> Option<&Box>> { - self.senders.get_mut(id).filter(|sender| sender.id() == *id) + self.senders.get(id).filter(|sender| sender.id() == *id) } fn add_send_event_provider(