fix warnings

This commit is contained in:
Chris West (Faux)
2019-09-09 19:54:45 +01:00
parent 90e3e7ab1a
commit a97dfcb408
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ mod range;
mod redirect;
mod simple;
type RequestHandler = Fn(&Unit) -> Result<Stream, Error> + Send + 'static;
type RequestHandler = dyn Fn(&Unit) -> Result<Stream, Error> + Send + 'static;
lazy_static! {
pub(crate) static ref TEST_HANDLERS: Arc<Mutex<HashMap<String, Box<RequestHandler>>>> =