fix many clones()

This commit is contained in:
2023-05-24 12:11:55 +02:00
parent cf45036642
commit 99296d4060
8 changed files with 54 additions and 71 deletions

View File

@ -138,7 +138,7 @@ FROM user_trip WHERE trip_details_id = (SELECT trip_details_id FROM trip WHERE i
cox: &CoxUser,
trip: &Trip,
max_people: i32,
notes: Option<String>,
notes: Option<&str>,
trip_type: Option<i64>, //TODO: Move to `TripType`
) -> Result<(), TripUpdateError> {
if !trip.is_trip_from_user(cox.id).await {