mirror of
https://git.42l.fr/neil/sncf.git
synced 2024-06-17 06:55:05 +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::database::structs::Form;
|
||||||
use crate::DbConn;
|
use crate::DbConn;
|
||||||
|
|
||||||
#[table_name = "form"]
|
|
||||||
#[derive(Serialize, Insertable)]
|
#[derive(Serialize, Insertable)]
|
||||||
|
#[table_name = "form"]
|
||||||
pub struct InsertableForm {
|
pub struct InsertableForm {
|
||||||
pub created_at: NaiveDateTime,
|
pub created_at: NaiveDateTime,
|
||||||
pub lastvisit_at: NaiveDateTime,
|
pub lastvisit_at: NaiveDateTime,
|
||||||
|
|
|
@ -4,8 +4,8 @@ use chrono::NaiveDateTime;
|
||||||
use crate::database::schema::form;
|
use crate::database::schema::form;
|
||||||
//use crate::config::CONFIG;
|
//use crate::config::CONFIG;
|
||||||
|
|
||||||
#[table_name = "form"]
|
|
||||||
#[derive(Serialize, Queryable, Insertable, Debug, Clone)]
|
#[derive(Serialize, Queryable, Insertable, Debug, Clone)]
|
||||||
|
#[table_name = "form"]
|
||||||
pub struct Form {
|
pub struct Form {
|
||||||
pub id: i32,
|
pub id: i32,
|
||||||
pub created_at: NaiveDateTime,
|
pub created_at: NaiveDateTime,
|
||||||
|
|
Loading…
Reference in a new issue