From 9e6f390c1f34de0d0b413f4704fc2d1f655c47bc Mon Sep 17 00:00:00 2001 From: Eduardo Broto Date: Sat, 7 Dec 2019 21:24:57 +0100 Subject: chore(style): fix clippy errors --- src/tests/fakes/fake_input.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/tests/fakes') 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) + Send> { +pub fn create_fake_on_winch(should_send_winch_event: bool) -> Box { Box::new(move |cb| { if should_send_winch_event { thread::sleep(time::Duration::from_millis(900)); -- cgit v1.2.3