From 5ceff05581964a3ba677a0dfde07e314646bb6bd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 27 Aug 2020 21:49:05 +0200 Subject: Format Signed-off-by: Matthias Beyer --- src/client.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/client.rs') diff --git a/src/client.rs b/src/client.rs index 7d48676..ddf4145 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,5 +1,3 @@ - - use futures::future::poll_fn; use futures::task::Poll; use tokio::net::TcpStream; @@ -16,10 +14,10 @@ type EventClosure = dyn FnMut(&Event) + Sync + Send + 'static; type EventClosureMutex = Box; pub fn event_handler(f: F) -> EventClosureMutex - where F: FnMut(&Event) + Sync + Send + 'static - { - Box::new(f) - } +where F: FnMut(&Event) + Sync + Send + 'static +{ + Box::new(f) +} pub struct FlicClient { reader: Mutex, -- cgit v1.2.3