diff --git a/geneit_backend/src/controllers/accommodations_list_controller.rs b/geneit_backend/src/controllers/accommodations_list_controller.rs index cf640ce..6f69ba6 100644 --- a/geneit_backend/src/controllers/accommodations_list_controller.rs +++ b/geneit_backend/src/controllers/accommodations_list_controller.rs @@ -84,7 +84,7 @@ pub async fn get_full_list(m: FamilyInPath) -> HttpResult { /// Get the information of a single accommodation pub async fn get_single(m: FamilyAndAccommodationInPath) -> HttpResult { - Ok(HttpResponse::Ok().json(&m.to_accommodation())) + Ok(HttpResponse::Ok().json(m.to_accommodation())) } /// Update an accommodation