From 1c74d11e96de3e8cff512583d52aef110ad6257c Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 May 2023 12:16:13 +0200 Subject: [PATCH] fix clones() --- src/model/trip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/trip.rs b/src/model/trip.rs index 3b7d163..e60f77a 100644 --- a/src/model/trip.rs +++ b/src/model/trip.rs @@ -108,9 +108,9 @@ WHERE day=? trip_type = TripType::find_by_id(db, trip_type_id).await; } ret.push(TripWithUserAndType { - trip: trip.clone(), - trip_type, rower: trip.get_all_rower(db).await, + trip, + trip_type, }); } ret