diff --git a/examples/todo/src/main.rs b/examples/todo/src/main.rs index 8cf61cef..4e5c2457 100644 --- a/examples/todo/src/main.rs +++ b/examples/todo/src/main.rs @@ -82,7 +82,7 @@ fn rocket() -> (Rocket, Option) { }; let rocket = rocket::ignite() - .manage(db::init_pool()) + .manage(pool) .mount("/", routes![index, static_files::all]) .mount("/todo/", routes![new, toggle, delete]) .attach(Template::fairing());