summaryrefslogtreecommitdiffstats
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs10
1 files changed, 4 insertions, 6 deletions
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<EventClosure>;
pub fn event_handler<F>(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<OwnedReadHalf>,