From 5ab5f490bc7199709fbc03d51bf6131e92269fdc Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 8 Apr 2019 15:10:00 +0200 Subject: Fix warnings from test runs. --- tests/apitests.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/apitests.rs b/tests/apitests.rs index 4a74810..58be302 100644 --- a/tests/apitests.rs +++ b/tests/apitests.rs @@ -86,7 +86,7 @@ fn load_fixtures(db: &ramaskrik::db::Connection) { #[test] fn getting_rooms_from_api() { - server_with_db(|server, db| { + server_with_db(|server, _| { let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/rooms").dispatch(); assert_eq!(response.content_type(), Some(ContentType::JSON)); @@ -105,7 +105,7 @@ fn getting_rooms_from_api() { #[test] fn getting_films_from_api() { - server_with_db(|server, db| { + server_with_db(|server, _| { let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/films").dispatch(); assert_eq!(response.content_type(), Some(ContentType::JSON)); @@ -133,8 +133,6 @@ fn getting_screenings_from_api() { chrono::NaiveTime::from_hms(19, 34, 00), &db).unwrap(); - use ramaskrik::schema::screenings::dsl::*; - let client = rocket::local::Client::new(server).unwrap(); let mut response = client.get("/screenings").dispatch(); assert_eq!(response.content_type(), Some(ContentType::JSON)); -- cgit v1.2.3