mirror of https://github.com/rwf2/Rocket.git
Remove stale comments.
This commit is contained in:
parent
b38942ad00
commit
0ce41c0f2c
|
@ -42,7 +42,6 @@ fn new(todo_form: Form<Task>) -> Flash<Redirect> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Should likely do something to simulate PUT.
|
|
||||||
#[put("/<id>")]
|
#[put("/<id>")]
|
||||||
fn toggle(id: i32) -> Result<Redirect, Template> {
|
fn toggle(id: i32) -> Result<Redirect, Template> {
|
||||||
if Task::toggle_with_id(id) {
|
if Task::toggle_with_id(id) {
|
||||||
|
@ -52,7 +51,6 @@ fn toggle(id: i32) -> Result<Redirect, Template> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Should likely do something to simulate DELETE.
|
|
||||||
#[delete("/<id>")]
|
#[delete("/<id>")]
|
||||||
fn delete(id: i32) -> Result<Flash<Redirect>, Template> {
|
fn delete(id: i32) -> Result<Flash<Redirect>, Template> {
|
||||||
if Task::delete_with_id(id) {
|
if Task::delete_with_id(id) {
|
||||||
|
|
Loading…
Reference in New Issue