1
0
Fork 0
mirror of https://git.42l.fr/neil/sncf.git synced 2024-04-26 03:20:29 +02:00

fix compilation warning with rust update

This commit is contained in:
neil 2021-07-14 22:42:09 +02:00
parent 730a023e55
commit 8d67cb340c
2 changed files with 2 additions and 2 deletions

View file

@ -7,8 +7,8 @@ use crate::database::schema::form::dsl::*;
use crate::database::structs::Form;
use crate::DbConn;
#[table_name = "form"]
#[derive(Serialize, Insertable)]
#[table_name = "form"]
pub struct InsertableForm {
pub created_at: NaiveDateTime,
pub lastvisit_at: NaiveDateTime,

View file

@ -4,8 +4,8 @@ use chrono::NaiveDateTime;
use crate::database::schema::form;
//use crate::config::CONFIG;
#[table_name = "form"]
#[derive(Serialize, Queryable, Insertable, Debug, Clone)]
#[table_name = "form"]
pub struct Form {
pub id: i32,
pub created_at: NaiveDateTime,