Use forked diesel to compile on latest nightly.

This commit is contained in:
Sergio Benitez 2016-09-04 14:24:48 -07:00
parent 7f54c9036f
commit 1f19b88803
2 changed files with 3 additions and 3 deletions

View File

@ -12,5 +12,5 @@ tera = { git = "https://github.com/Keats/tera" }
serde = "0.8"
serde_json = "0.8"
serde_macros = "0.8"
diesel = { git = "https://github.com/diesel-rs/diesel.git", features = ["sqlite"] }
diesel_codegen = { git = "https://github.com/diesel-rs/diesel.git", default_features = false, features = ["sqlite"] }
diesel = { git = "https://github.com/SergioBenitez/diesel", features = ["sqlite"] }
diesel_codegen = { git = "https://github.com/SergioBenitez/diesel", default_features = false, features = ["sqlite"] }

View File

@ -38,7 +38,7 @@ fn new(todo: Task) -> Result<Redirect, tera::TeraResult<String>> {
}
// Should likely do something to simulate PUT.
#[post("/<id>/toggle")]
#[get("/<id>/toggle")]
fn toggle(id: i32) -> Result<Redirect, tera::TeraResult<String>> {
if Task::toggle_with_id(id) {
Ok(Redirect::to("/")) // Say that it was added...somehow.