diff --git a/fsrc-core/src/event_man.rs b/fsrc-core/src/event_man.rs index cce5e12..d050a70 100644 --- a/fsrc-core/src/event_man.rs +++ b/fsrc-core/src/event_man.rs @@ -103,14 +103,12 @@ impl EventManager { pub fn remove_single_subscriptions_for_group( &mut self, group_id: LargestGroupIdRaw, - dest: impl SendEventProvider + 'static + dest: impl SendEventProvider + 'static, ) { if self.listeners.contains_key(&ListenerType::Group(group_id)) { for (ltype, listeners) in &mut self.listeners { if let ListenerType::Single(_) = ltype { - listeners.retain(|f| { - f.send_provider.id() != dest.id() - }); + listeners.retain(|f| f.send_provider.id() != dest.id()); } } }