From 7446f0db1c94ca5d8e43824352910d0b6ccfb242 Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Fri, 31 Oct 2025 08:38:45 +0100 Subject: [PATCH] fix: call proper method to get entity id --- 01.workspace/heave/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01.workspace/heave/src/lib.rs b/01.workspace/heave/src/lib.rs index ed8b9a0..7c971f4 100644 --- a/01.workspace/heave/src/lib.rs +++ b/01.workspace/heave/src/lib.rs @@ -70,7 +70,7 @@ //! //! fn try_from(entity: Entity) -> Result { //! Ok(Self { -//! id: entity.id.clone(), +//! id: entity.id(), //! name: entity.unwrap("name").map_err(|_| FailedTo::ConvertEntity)?, //! price: entity.unwrap("price").map_err(|_| FailedTo::ConvertEntity)?, //! in_stock: entity.unwrap("in_stock").map_err(|_| FailedTo::ConvertEntity)?,