summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2019-10-14 17:35:25 +0200
committerAram Drevekenin <aram@poor.dev>2019-10-14 17:35:25 +0200
commitd1a5ef1836ab80fc3dc69b936afe94dd2b1bf329 (patch)
tree1dab7ca7a60548d98debd88af0e086d93769d76d /src/tests
parente6e31e6d4eabd49fe42da74a6eb2f9cdaaf88444 (diff)
style(formatting): rustfmt
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fakes/fake_input.rs4
-rw-r--r--src/tests/mod.rs4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs
index 11d2a2a..cb2710a 100644
--- a/src/tests/fakes/fake_input.rs
+++ b/src/tests/fakes/fake_input.rs
@@ -151,7 +151,9 @@ pub fn create_fake_lookup_addr(
})
}
-pub fn create_fake_on_winch(should_send_winch_event: bool) -> Box<Fn(Box<Fn() + Send + Sync + 'static>) + Send + Sync + 'static> {
+pub fn create_fake_on_winch(
+ should_send_winch_event: bool,
+) -> Box<Fn(Box<Fn() + Send + Sync + 'static>) + Send + Sync + 'static> {
Box::new(move |cb| {
if should_send_winch_event {
thread::sleep(time::Duration::from_secs(1));
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index 2470cfa..bf1bc1e 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -2,8 +2,8 @@ mod fakes;
use fakes::TerminalEvent::*;
use fakes::{
- create_fake_lookup_addr, create_fake_on_winch, get_interface, get_open_sockets,
- KeyboardEvents, NetworkFrames, TestBackend,
+ create_fake_lookup_addr, create_fake_on_winch, get_interface, get_open_sockets, KeyboardEvents,
+ NetworkFrames, TestBackend,
};
use ::insta::assert_snapshot;