summaryrefslogtreecommitdiffstats
path: root/src/tests/fakes/fake_input.rs
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2019-12-07 21:24:57 +0100
committerEduardo Broto <ebroto@tutanota.com>2019-12-07 22:38:01 +0100
commit9e6f390c1f34de0d0b413f4704fc2d1f655c47bc (patch)
tree089b711721a9c4aac2e461a2fa7211d7ba5de266 /src/tests/fakes/fake_input.rs
parent423c6a52ba84c27b8667a762ee33bc28f44f0e37 (diff)
chore(style): fix clippy errors
Diffstat (limited to 'src/tests/fakes/fake_input.rs')
-rw-r--r--src/tests/fakes/fake_input.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs
index 889e708..b3b089b 100644
--- a/src/tests/fakes/fake_input.rs
+++ b/src/tests/fakes/fake_input.rs
@@ -10,9 +10,12 @@ use ::std::task::{Context, Poll};
use ::std::{thread, time};
use ::termion::event::Event;
-use crate::network::{
- dns::{self, Lookup},
- Connection, Protocol,
+use crate::{
+ network::{
+ dns::{self, Lookup},
+ Connection, Protocol,
+ },
+ os::OnSigWinch,
};
pub struct KeyboardEvents {
@@ -142,7 +145,7 @@ pub fn get_interface() -> NetworkInterface {
}
}
-pub fn create_fake_on_winch(should_send_winch_event: bool) -> Box<dyn Fn(Box<dyn Fn()>) + Send> {
+pub fn create_fake_on_winch(should_send_winch_event: bool) -> Box<OnSigWinch> {
Box::new(move |cb| {
if should_send_winch_event {
thread::sleep(time::Duration::from_millis(900));