From 819c121fd7002fc4a0547dd2c83013be367291ef Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 28 Oct 2022 02:02:50 +0200 Subject: [PATCH] cargo fmt --- fsrc-core/src/event_man.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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()); } } }