mirror of https://github.com/rwf2/Rocket.git
Fix 'legacy_derive_helpers' warning in todo example.
This commit is contained in:
parent
ac9d403242
commit
374ad8804c
|
@ -15,8 +15,8 @@ use self::schema::tasks::dsl::{tasks as all_tasks, completed as task_completed};
|
||||||
|
|
||||||
use crate::DbConn;
|
use crate::DbConn;
|
||||||
|
|
||||||
#[table_name="tasks"]
|
|
||||||
#[derive(serde::Serialize, Queryable, Insertable, Debug, Clone)]
|
#[derive(serde::Serialize, Queryable, Insertable, Debug, Clone)]
|
||||||
|
#[table_name="tasks"]
|
||||||
pub struct Task {
|
pub struct Task {
|
||||||
pub id: Option<i32>,
|
pub id: Option<i32>,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
|
|
Loading…
Reference in New Issue