diff --git a/src/model/mod.rs b/src/model/mod.rs index ed5ddbf..367fb57 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -24,7 +24,7 @@ pub mod triptype; pub mod user; pub mod usertrip; -#[derive(Serialize)] +#[derive(Serialize, Debug)] pub struct Day { day: NaiveDate, planned_events: Vec, diff --git a/src/model/trip.rs b/src/model/trip.rs index 49f4222..9141a35 100644 --- a/src/model/trip.rs +++ b/src/model/trip.rs @@ -25,7 +25,7 @@ pub struct Trip { is_locked: bool, } -#[derive(Serialize)] +#[derive(Serialize, Debug)] pub struct TripWithUserAndType { #[serde(flatten)] pub trip: Trip, diff --git a/src/tera/mod.rs b/src/tera/mod.rs index e9d510c..7e3d6c0 100644 --- a/src/tera/mod.rs +++ b/src/tera/mod.rs @@ -57,7 +57,6 @@ async fn index(db: &State, user: User, flash: Option