From d8e659232510c9f765e58a3eb0750561269709d8 Mon Sep 17 00:00:00 2001 From: Mike Cooper Date: Mon, 7 Jan 2019 12:49:03 -0800 Subject: [PATCH] Fix missed clippy problems --- src/endpoints/dockerflow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints/dockerflow.rs b/src/endpoints/dockerflow.rs index 31bd461..4340518 100644 --- a/src/endpoints/dockerflow.rs +++ b/src/endpoints/dockerflow.rs @@ -73,7 +73,7 @@ mod tests { #[test] fn heartbeat() { - let mut srv = test::TestServer::build_with_state(|| EndpointState::default()) + let mut srv = test::TestServer::build_with_state(EndpointState::default) .start(|app| app.handler(&super::heartbeat)); let req = srv.get().finish().unwrap(); let resp = srv.execute(req.send()).unwrap(); @@ -82,7 +82,7 @@ mod tests { #[test] fn version() { - let mut srv = test::TestServer::build_with_state(|| EndpointState::default()) + let mut srv = test::TestServer::build_with_state(EndpointState::default) .start(|app| app.handler(&super::version)); let req = srv.get().finish().unwrap(); let resp = srv.execute(req.send()).unwrap();