From 48a43bf19051c66152ea6b9fca5b3cd4507a9732 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 22 Aug 2024 07:05:42 +0000 Subject: [PATCH] Fix build issue on newer Rust versions --- .../src/controllers/accommodations_list_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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