diff --git a/src/model/tripdetails.rs b/src/model/tripdetails.rs index 0667766..109eefe 100644 --- a/src/model/tripdetails.rs +++ b/src/model/tripdetails.rs @@ -77,10 +77,7 @@ WHERE day = ? AND planned_starting_time = ? return; } - if Trip::find_by_trip_details(db, trip_details.id) - .await - .is_none() - { + if Trip::find_by_trip_details(db, self.id).await.is_none() { // This trip_details belongs to a planned_event, no need to do anything return; }; diff --git a/src/model/usertrip.rs b/src/model/usertrip.rs index ff12fbf..647f7cd 100644 --- a/src/model/usertrip.rs +++ b/src/model/usertrip.rs @@ -1,11 +1,6 @@ use sqlx::SqlitePool; -use super::{ - notification::Notification, - trip::{Trip, TripWithUserAndType}, - tripdetails::TripDetails, - user::User, -}; +use super::{notification::Notification, trip::Trip, tripdetails::TripDetails, user::User}; use crate::model::tripdetails::{Action, CoxAtTrip::Yes}; pub struct UserTrip {}