mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-19 07:59:05 +00:00
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;
|
||||
|
||||
#[table_name="tasks"]
|
||||
#[derive(serde::Serialize, Queryable, Insertable, Debug, Clone)]
|
||||
#[table_name="tasks"]
|
||||
pub struct Task {
|
||||
pub id: Option<i32>,
|
||||
pub description: String,
|
||||
|
Loading…
Reference in New Issue
Block a user