From c41a56514d5ac17799864742d55b1b5a28429e1d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 19 Jul 2023 11:34:13 +0200 Subject: [PATCH] event manager non-mut --- satrs-core/src/event_man.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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( -- 2.43.0