mirror of https://github.com/rwf2/Rocket.git
Use forked diesel to compile on latest nightly.
This commit is contained in:
parent
7f54c9036f
commit
1f19b88803
|
@ -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"] }
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue