Fix 'legacy_derive_helpers' warning in todo example.

This commit is contained in:
Sergio Benitez 2021-02-22 19:33:32 -08:00
parent ac9d403242
commit 374ad8804c
1 changed files with 1 additions and 1 deletions

View File

@ -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,