Fix build issue on newer Rust versions
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-08-22 07:05:42 +00:00
parent a9c50d36a7
commit 48a43bf190

View File

@ -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