diff options
Diffstat (limited to 'src/tests/fakes/fake_input.rs')
-rw-r--r-- | src/tests/fakes/fake_input.rs | 4 |
1 files changed, 3 insertions, 1 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)); |