summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-04-13 16:23:47 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-04-18 13:00:03 +0200
commit7b054cf70ef6eaccc3886364fecf8814a541a00b (patch)
tree77d56167867190186ce444c42926c0d0ce4375b1
parent67d80b7551cd8958d46ae3c9c4e7872725143606 (diff)
downloadmullvadvpn-7b054cf70ef6eaccc3886364fecf8814a541a00b.tar.xz
mullvadvpn-7b054cf70ef6eaccc3886364fecf8814a541a00b.zip
Move callback out to allow formatting
-rw-r--r--talpid_ipc/tests/zmq_integration_tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/talpid_ipc/tests/zmq_integration_tests.rs b/talpid_ipc/tests/zmq_integration_tests.rs
index 498c3af820..ba22e28c40 100644
--- a/talpid_ipc/tests/zmq_integration_tests.rs
+++ b/talpid_ipc/tests/zmq_integration_tests.rs
@@ -27,8 +27,9 @@ mod zmq_integration_tests {
{
let (tx, rx) = mpsc::channel();
+ let callback = move |message: Result<T>| { let _ = tx.send(message); };
let connection_string =
- talpid_ipc::start_new_server(move |message: Result<T>| { let _ = tx.send(message); })
+ talpid_ipc::start_new_server(callback)
.expect("Could not start the server");
(connection_string, rx)