cargo fmt

This commit is contained in:
Robin Müller 2022-10-28 02:02:50 +02:00
parent 10849229e6
commit 819c121fd7
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -103,14 +103,12 @@ impl<E, Event: GenericEvent + Copy> EventManager<E, Event> {
pub fn remove_single_subscriptions_for_group(
&mut self,
group_id: LargestGroupIdRaw,
dest: impl SendEventProvider<Event, Error=E> + 'static
dest: impl SendEventProvider<Event, Error = E> + '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());
}
}
}