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:
parent
730a023e55
commit
8d67cb340c
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue