clean code with clippy
This commit is contained in:
@ -10,7 +10,7 @@ impl UserTrip {
|
||||
user_id: i64,
|
||||
trip_details_id: i64,
|
||||
) -> Result<(), UserTripError> {
|
||||
let trip_details = TripDetails::find_by_id(&db, trip_details_id)
|
||||
let trip_details = TripDetails::find_by_id(db, trip_details_id)
|
||||
.await
|
||||
.ok_or(UserTripError::TripDetailsNotFound)?;
|
||||
|
||||
|
Reference in New Issue
Block a user