diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-06-19 19:13:11 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-06-19 19:13:11 +0200 |
| commit | 9aca7a8c930b179b6ae539234296f529928a3f3a (patch) | |
| tree | 6d5a6f7975781fa9e8b845bdb015b4634a47dbf7 /mumd | |
| parent | 4b263196d3a41c99f7dc1acf659a9f9083163d5e (diff) | |
| download | mum-9aca7a8c930b179b6ae539234296f529928a3f3a.tar.gz | |
add line breaks
Diffstat (limited to 'mumd')
| -rw-r--r-- | mumd/src/state.rs | 7 |
1 files changed, 6 insertions, 1 deletions
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<dyn Iterator<Item = mumlib::error::Result<Option<CommandResponse>>>>; type TcpEventCallback = Box<dyn FnOnce(TcpEventData<'_>) -> Responses>; -type TcpEventSubscriberCallback = Box<dyn FnMut(TcpEventData<'_>,&mut mpsc::UnboundedSender<mumlib::error::Result<Option<CommandResponse>>>,) -> bool>; +type TcpEventSubscriberCallback = Box< + dyn FnMut( + TcpEventData<'_>, + &mut mpsc::UnboundedSender<mumlib::error::Result<Option<CommandResponse>>>, + ) -> bool +>; //TODO give me a better name pub enum ExecutionContext { |
