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)?,