From 9aca7a8c930b179b6ae539234296f529928a3f3a Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Sat, 19 Jun 2021 19:13:11 +0200 Subject: add line breaks --- mumd/src/state.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mumd/src') diff --git a/mumd/src/state.rs b/mumd/src/state.rs index a1344a1..1992884 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -44,7 +44,12 @@ macro_rules! now { type Responses = Box>>>; type TcpEventCallback = Box) -> Responses>; -type TcpEventSubscriberCallback = Box,&mut mpsc::UnboundedSender>>,) -> bool>; +type TcpEventSubscriberCallback = Box< + dyn FnMut( + TcpEventData<'_>, + &mut mpsc::UnboundedSender>>, + ) -> bool +>; //TODO give me a better name pub enum ExecutionContext { -- cgit v1.2.1