diff --git a/examples/todo/Cargo.toml b/examples/todo/Cargo.toml index 2478841f..4fddee3e 100644 --- a/examples/todo/Cargo.toml +++ b/examples/todo/Cargo.toml @@ -15,7 +15,7 @@ diesel_migrations = "1.3" log = "0.4" [dev-dependencies] -parking_lot = { version = "0.10", features = ["nightly"] } +parking_lot = "0.11" rand = "0.7" [dependencies.rocket_contrib] diff --git a/examples/todo/src/tests.rs b/examples/todo/src/tests.rs index 1c4b2dc9..f4f72f3a 100644 --- a/examples/todo/src/tests.rs +++ b/examples/todo/src/tests.rs @@ -9,7 +9,7 @@ use rocket::http::{Status, ContentType}; // We use a lock to synchronize between tests so DB operations don't collide. // For now. In the future, we'll have a nice way to run each test in a DB // transaction so we can regain concurrency. -static DB_LOCK: Mutex<()> = Mutex::new(()); +static DB_LOCK: Mutex<()> = parking_lot::const_mutex(()); macro_rules! run_test { (|$client:ident, $conn:ident| $block:expr) => ({