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"); }