From 1a18c73970b3cd2057c2d0e9ec259952a1edfc7e Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 2 Feb 2017 14:47:53 -0800 Subject: [PATCH] Update to todo example to diesel 0.10. --- examples/todo/Cargo.toml | 4 ++-- examples/todo/src/task.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/todo/Cargo.toml b/examples/todo/Cargo.toml index 349cb06b..bbfb7de7 100644 --- a/examples/todo/Cargo.toml +++ b/examples/todo/Cargo.toml @@ -9,8 +9,8 @@ rocket_codegen = { path = "../../codegen" } serde = "0.9" serde_json = "0.9" serde_derive = "0.9" -diesel = { version = "0.9", features = ["sqlite"] } -diesel_codegen = { version = "0.9", features = ["sqlite"] } +diesel = { version = "0.10", features = ["sqlite"] } +diesel_codegen = { version = "0.10", features = ["sqlite"] } [dependencies.rocket_contrib] path = "../../contrib" diff --git a/examples/todo/src/task.rs b/examples/todo/src/task.rs index a61f03d5..a11a0733 100644 --- a/examples/todo/src/task.rs +++ b/examples/todo/src/task.rs @@ -6,7 +6,6 @@ use self::schema::tasks::dsl::{tasks as all_tasks, completed as task_completed}; const DATABASE_FILE: &'static str = env!("DATABASE_URL"); -#[allow(dead_code)] mod schema { infer_schema!("env:DATABASE_URL"); }