summaryrefslogtreecommitdiffstats
path: root/src/client.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-08-27 21:49:05 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-08-27 21:49:19 +0200
commit5ceff05581964a3ba677a0dfde07e314646bb6bd (patch)
tree78bbd813991e2fbfa6466fb1f31e2055998dadcf /src/client.rs
parent26eee01831fc38da3598807a0195a78ff29472fe (diff)
Format
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
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>,