From 374ad8804c7b322b498d75b71dca5c48e114011e Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 22 Feb 2021 19:33:32 -0800 Subject: [PATCH] Fix 'legacy_derive_helpers' warning in todo example. --- examples/todo/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/todo/src/task.rs b/examples/todo/src/task.rs index 98726819..404e829a 100644 --- a/examples/todo/src/task.rs +++ b/examples/todo/src/task.rs @@ -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, pub description: String,